From 37ba1b90b21053ae8552a20f23835452b6fe588c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 6 Jul 2018 19:28:03 +0200 Subject: [PATCH] fixed the command line toggles --- commandline.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commandline.cpp b/commandline.cpp index 1edf814b..28960919 100644 --- a/commandline.cpp +++ b/commandline.cpp @@ -212,9 +212,9 @@ int arg::readCommon() { // mode changes: #define TOGGLE(x, param, act) \ -else if(args()[0] == '-' && args()[1] == x && !args()[2]) { showstartmenu = false; act; } \ -else if(args()[0] == '-' && args()[1] == x && args()[2] == '1') { showstartmenu = false; if(!param) act; } \ -else if(args()[0] == '-' && args()[1] == x && args()[2] == '0') { showstartmenu = false; if(param) act; } +else if(args()[0] == '-' && args()[1] == x && !args()[2]) { PHASEFROM(2); showstartmenu = false; act; } \ +else if(args()[0] == '-' && args()[1] == x && args()[2] == '1') { PHASEFROM(2); showstartmenu = false; if(!param) act; } \ +else if(args()[0] == '-' && args()[1] == x && args()[2] == '0') { PHASEFROM(2); showstartmenu = false; if(param) act; } TOGGLE('o', vid.usingGL, switchGL()) TOGGLE('C', chaosmode, stop_game_and_switch_mode(rg::chaos))