1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-05 03:47:58 +00:00

fixed slide-backups restoration on tour quit

This commit is contained in:
Zeno Rogue
2025-04-08 12:12:00 +02:00
parent 88d0188dee
commit f962d5609d
2 changed files with 22 additions and 23 deletions

View File

@@ -234,6 +234,18 @@ void return_geometry() {
addMessage(XLAT("Returned to your game."));
}
EX void return_geometries() {
while(gamestack::pushed()) return_geometry();
}
EX void stop_tour() {
if(!tour::on) return;
while(gamestack::pushed()) return_geometry();
presentation(pmStop);
slide_restore_all();
tour::on = false;
}
EX bool next_slide() {
flagtype flags = slides[currentslide].flags;
popScreenAll();
@@ -575,11 +587,6 @@ EX void start() {
if(!tour::on) {
initialize_slides();
}
else {
presentation(pmStop);
stop_game();
firstland = specialland = laIce;
}
restart_game(rg::tour);
if(tour::on) {
if(texts) slidehelp();