1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-25 02:47:40 +00:00

more cleanup in parameters, restartGame cleanup

This commit is contained in:
Zeno Rogue
2018-06-11 00:58:38 +02:00
parent 90573cf456
commit 98246d3066
20 changed files with 344 additions and 307 deletions

View File

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