1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-12 02:10:34 +00:00

the -W cheat is now better at keeping the land after F5

This commit is contained in:
Zeno Rogue 2017-10-12 00:20:53 +02:00
parent c09d9532ef
commit aba5ef5358
2 changed files with 6 additions and 3 deletions

View File

@ -136,7 +136,8 @@ int arg::readCommon() {
showstartmenu = false; showstartmenu = false;
} }
else if(argis("-W")) { else if(argis("-W")) {
shift(); firstland = specialland = readland(args()); shift();
firstland0 = firstland = specialland = readland(args()); autocheat = true;
showstartmenu = false; showstartmenu = false;
} }
else if(argis("-I")) { else if(argis("-I")) {

View File

@ -395,6 +395,8 @@ bool inv::on;
bool fixseed = false; bool fixseed = false;
int startseed = 0; int startseed = 0;
eLand firstland0;
void initAll() { void initAll() {
showstartmenu = true; showstartmenu = true;
ca::init(); ca::init();
@ -404,7 +406,7 @@ void initAll() {
achievement_init(); // not in ANDROID achievement_init(); // not in ANDROID
eLand f = firstland; firstland0 = firstland;
// initlanguage(); // initlanguage();
initgraph(); initgraph();
@ -425,7 +427,7 @@ void initAll() {
restoreGolems(kills[moPrincessArmedMoved], moPrincessArmed, princess::saveArmedHP); kills[moPrincessArmedMoved] = 0; restoreGolems(kills[moPrincessArmedMoved], moPrincessArmed, princess::saveArmedHP); kills[moPrincessArmedMoved] = 0;
} }
firstland = f; firstland = firstland0;
} }
void finishAll() { void finishAll() {