diff options
author | Tristan Heaven <nyhm@gentoo.org> | 2006-10-26 22:50:03 +0000 |
---|---|---|
committer | Tristan Heaven <nyhm@gentoo.org> | 2006-10-26 22:50:03 +0000 |
commit | 29e309324b216deb53c18366a2458a5852824a33 (patch) | |
tree | 74005c0a79f0e8a6320114cc2acddef5d1af5506 /games-puzzle/gemhun/files | |
parent | Make sure to get the version of autotools from ROOT=/ or it won't work with c... (diff) | |
download | gentoo-2-29e309324b216deb53c18366a2458a5852824a33.tar.gz gentoo-2-29e309324b216deb53c18366a2458a5852824a33.tar.bz2 gentoo-2-29e309324b216deb53c18366a2458a5852824a33.zip |
Fix autotools stuff and an arithmetic exception, bug #125374
(Portage version: 2.1.2_pre3-r9)
Diffstat (limited to 'games-puzzle/gemhun/files')
-rw-r--r-- | games-puzzle/gemhun/files/gemhun-20040529-srand.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/games-puzzle/gemhun/files/gemhun-20040529-srand.patch b/games-puzzle/gemhun/files/gemhun-20040529-srand.patch new file mode 100644 index 000000000000..b8b3d40952f7 --- /dev/null +++ b/games-puzzle/gemhun/files/gemhun-20040529-srand.patch @@ -0,0 +1,11 @@ +--- src/network.cpp ++++ src/network.cpp +@@ -68,7 +68,7 @@ + sprintf ( self . alias, "%s", "you" ) ; + + srand ( SDL_GetTicks () + self . ip . port + (int) self . alias + +- rand () - SDL_GetTicks () + rand () % SDL_GetTicks () ) ; ++ rand () - SDL_GetTicks () + rand () ) ; + + sprintf ( self . key, "%s", CreateKey () . c_str () ) ; + |