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:
17
tour.cpp
17
tour.cpp
@@ -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();
|
||||
|
Reference in New Issue
Block a user