mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-12-17 11:38:05 +00:00
10.0d
This commit is contained in:
18
system.cpp
18
system.cpp
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user