1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +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;
}
else if(argis("-W")) {
shift(); firstland = specialland = readland(args());
shift();
firstland0 = firstland = specialland = readland(args()); autocheat = true;
showstartmenu = false;
}
else if(argis("-I")) {

View File

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