1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 10:27:45 +00:00

save_cheats option, also fixed buffer overflow

This commit is contained in:
Zeno Rogue
2024-03-27 20:59:41 +01:00
parent b07987b2f4
commit 5efacd787d
2 changed files with 16 additions and 5 deletions

View File

@@ -660,6 +660,9 @@ int read_cheat_args() {
PHASEFROM(2);
shift(); vid.stereo_mode = eStereo(argi());
}
else if(argis("-save-cheats")) {
save_cheats = true;
}
else if(argis("-cmove")) {
PHASE(3); shift();
for(char c: args()) cheat_move(c);