This commit is contained in:
Zeno Rogue committed 2017-07-25 00:21:36 +02:00
1 parent fdc1ac1e6e
commit cc03560389
18 files changed
+149 -61

No files matched your search

+14 -4
View File
@@ -984,17 +984,27 @@ namespace gamestack {
};
void popGame() {
if(gamestack::pushed()) {
gamestack::pop();
}
}
void popAllGames() {
while(gamestack::pushed()) {
gamestack::pop();
}
}
void restartGame(char switchWhat, bool push) {
popScreenAll();
DEBB(DF_INIT, (debugfile,"restartGame\n"));
if(push)
gamestack::push();
else if(gamestack::pushed()) {
gamestack::pop();
return;
}
else {
popAllGames();
achievement_final(true);
#if CAP_SAVE
saveStats();