pkgsrc/games/lbreakout/patches/patch-ac
2005-02-20 01:09:28 +00:00

26 lines
659 B
Text

$NetBSD: patch-ac,v 1.3 2005/02/20 01:09:28 wiz Exp $
--- lbreakout/game.cpp.orig 2001-03-11 17:53:45.000000000 +0100
+++ lbreakout/game.cpp
@@ -15,6 +15,8 @@
* *
***************************************************************************/
+#include <time.h>
+#include <sys/types.h>
#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