diff options
Diffstat (limited to 'games/lbreakout/patches/patch-ac')
-rw-r--r-- | games/lbreakout/patches/patch-ac | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/games/lbreakout/patches/patch-ac b/games/lbreakout/patches/patch-ac index e3c78a0d6db..095ef0d1891 100644 --- a/games/lbreakout/patches/patch-ac +++ b/games/lbreakout/patches/patch-ac @@ -1,7 +1,7 @@ -$NetBSD: patch-ac,v 1.2 2001/08/15 19:41:45 rh Exp $ +$NetBSD: patch-ac,v 1.3 2005/02/20 01:09:28 wiz Exp $ ---- lbreakout/game.cpp.orig Sun Mar 11 11:53:45 2001 -+++ lbreakout/game.cpp Tue Aug 14 20:03:12 2001 +--- lbreakout/game.cpp.orig 2001-03-11 17:53:45.000000000 +0100 ++++ lbreakout/game.cpp @@ -15,6 +15,8 @@ * * ***************************************************************************/ @@ -11,3 +11,16 @@ $NetBSD: patch-ac,v 1.2 2001/08/15 19:41:45 rh Exp $ #include <sys/timeb.h> #include <stdlib.h> #include <string.h> +@@ -196,9 +198,9 @@ Game::Game() + CheckLevelFile(); + + //randomize +- timeb t; +- ftime(&t); +- srand((unsigned int)t.time); ++ time_t t; ++ time(&t); ++ srand((unsigned int)t); + + #ifdef SOUND + //load waves |