summaryrefslogtreecommitdiff
path: root/games/lbreakout/patches/patch-ac
blob: 095ef0d18914a37ed4ebb0e5db88497de5ca4424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$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