diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index b3dbba7..1f532d9 100644 --- a/src/main.cpp +++ b/src/main.cpp | |||
@@ -3,6 +3,9 @@ | |||
3 | #include "gamestate.h" | 3 | #include "gamestate.h" |
4 | #include "parser.tab.h" | 4 | #include "parser.tab.h" |
5 | 5 | ||
6 | #include <stdlib.h> | ||
7 | #include <time.h> | ||
8 | |||
6 | #include <bu/sio.h> | 9 | #include <bu/sio.h> |
7 | using namespace Bu; | 10 | using namespace Bu; |
8 | 11 | ||
@@ -28,6 +31,8 @@ int main( int argc, char *argv[] ) | |||
28 | 31 | ||
29 | fclose( in ); | 32 | fclose( in ); |
30 | 33 | ||
34 | srandom( time( NULL ) ); | ||
35 | |||
31 | Game *pGame = bld.getGame(); | 36 | Game *pGame = bld.getGame(); |
32 | 37 | ||
33 | GameState gs( pGame ); | 38 | GameState gs( pGame ); |