1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-12 23:35:59 +00:00

restartGame, wrong mode, and resetModes now use constants instead of magic char names

This commit is contained in:
Zeno Rogue
2018-04-09 18:05:23 +02:00
parent b9a6402ba7
commit 033c626dfc
19 changed files with 135 additions and 136 deletions

View File

@@ -89,7 +89,7 @@ void showDemo() {
}
else if(sym == 'f') {
firstland = laIce;
if(tactic::on) restartGame('t');
if(tactic::on) restartGame(rg::tactic);
else restartGame();
}
#if CAP_TOUR
@@ -100,17 +100,17 @@ void showDemo() {
#endif
else if(sym == 't') {
firstland = laTemple;
if(!tactic::on) restartGame('t');
if(!tactic::on) restartGame(rg::tactic);
else restartGame();
}
else if(sym == 'l') {
firstland = laStorms;
if(!tactic::on) restartGame('t');
if(!tactic::on) restartGame(rg::tactic);
else restartGame();
}
else if(sym == 'b') {
firstland = laBurial;
if(!tactic::on) restartGame('t');
if(!tactic::on) restartGame(rg::tactic);
else restartGame();
items[itOrbSword] = 60;
}