mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
arg::cheat() is now inline
This commit is contained in:
parent
66f352178e
commit
304e48d4b4
2
hyper.h
2
hyper.h
@ -1832,7 +1832,7 @@ namespace arg {
|
|||||||
#define PHASE(x) { if(arg::curphase > x) phaseerror(x); else if(arg::curphase < x) return 2; }
|
#define PHASE(x) { if(arg::curphase > x) phaseerror(x); else if(arg::curphase < x) return 2; }
|
||||||
#define PHASEFROM(x) { if(arg::curphase < x) return 2; }
|
#define PHASEFROM(x) { if(arg::curphase < x) return 2; }
|
||||||
|
|
||||||
void cheat() { autocheat = true; cheater++; timerghost = false; }
|
inline void cheat() { autocheat = true; cheater++; timerghost = false; }
|
||||||
|
|
||||||
#define TOGGLE(x, param, act) \
|
#define TOGGLE(x, 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]) { PHASEFROM(2); showstartmenu = false; act; } \
|
||||||
|
Loading…
Reference in New Issue
Block a user