summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7e2ef7f..262e7c4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -18,10 +18,15 @@ int main( int argc, char *argv[] )
18 Options &opt = Options::getInstance(); 18 Options &opt = Options::getInstance();
19 opt.parse( argc, argv ); 19 opt.parse( argc, argv );
20 20
21 if( opt.sFile.isEmpty() )
22 {
23 sio << "You must specify a stage script filename." << sio.nl;
24 return 1;
25 }
21 srandom( time( NULL ) ); 26 srandom( time( NULL ) );
22 27
23 GameBuilder bld; 28 GameBuilder bld;
24 bld.parse( argv[1] ); 29 bld.parse( opt.sFile );
25 Game *pGame = bld.getGame(); 30 Game *pGame = bld.getGame();
26 31
27 GameState gs( pGame ); 32 GameState gs( pGame );