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

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

No files matched your search

+4 -4
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;
}