mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-01 03:39:16 +00:00
debugging mode option -g
This commit is contained in:
parent
511eef0517
commit
b34af64efd
18
debug.cpp
18
debug.cpp
@ -649,6 +649,24 @@ int read_cheat_args() {
|
||||
PHASEFROM(2); cheat(); reptilecheat = true;
|
||||
}
|
||||
// cheats
|
||||
else if(argis("-g")) {
|
||||
/* debugging mode */
|
||||
if(curphase == 1) {
|
||||
/* use a separate score file */
|
||||
scorefile = "xx";
|
||||
/* set seed for reproducible results */
|
||||
if(!fixseed) {
|
||||
fixseed = true; autocheat = true;
|
||||
startseed = 1;
|
||||
}
|
||||
}
|
||||
PHASE(2);
|
||||
/* causes problems in gdb */
|
||||
mouseaim_sensitivity = 0;
|
||||
/* do not any play sounds while debugging */
|
||||
effvolume = 0;
|
||||
musicvolume = 0;
|
||||
}
|
||||
else if(argis("-WS")) {
|
||||
PHASE(3);
|
||||
shift();
|
||||
|
Loading…
Reference in New Issue
Block a user