From 0847c85abd5801169d5748a7165bb49a26b2d694 Mon Sep 17 00:00:00 2001 From: Sven Stucki Date: Fri, 2 Sep 2016 01:02:02 +0200 Subject: [PATCH] Make --test work without --newgame, update help text --- rwgame/RWGame.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/rwgame/RWGame.cpp b/rwgame/RWGame.cpp index 6830f581..fc768efa 100644 --- a/rwgame/RWGame.cpp +++ b/rwgame/RWGame.cpp @@ -62,7 +62,7 @@ RWGame::RWGame(int argc, char* argv[]) ("height,h", po::value(), "Game resolution height in pixel") ("fullscreen,f", "Enable fullscreen mode") ("newgame,n", "Directly start a new game") - ("test,t", "To be used with -n, starts in a test location instead") + ("test,t", "Starts a new game in a test location") ("load,l", po::value(), "Load save file") ("benchmark,b", po::value(), "Run benchmark and store results in file") ; @@ -162,20 +162,17 @@ RWGame::RWGame(int argc, char* argv[]) { loading->setNextState(new BenchmarkState(this, benchFile)); } + else if( test) + { + loading->setNextState(new IngameState(this, true, "test")); + } else if( newgame ) { - if( test ) - { - loading->setNextState(new IngameState(this,true, "test")); - } - else - { - loading->setNextState(new IngameState(this,true)); - } + loading->setNextState(new IngameState(this, true)); } else if( ! startSave.empty() ) { - loading->setNextState(new IngameState(this,true, startSave)); + loading->setNextState(new IngameState(this, true, startSave)); } else {