From 9cc4d74da001b7cc9d284e8979dfd0cd46b27269 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 11 Sep 2020 11:21:21 +0200 Subject: [PATCH] tour:: call pmStartAll for all slides at start --- tour.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tour.cpp b/tour.cpp index 88c1c51f..d1421bd2 100644 --- a/tour.cpp +++ b/tour.cpp @@ -455,13 +455,23 @@ EX namespace ss { } EX } + +EX void initialize_slides() { + dynamicval cs(currentslide, 0); + for(currentslide=0;; currentslide++) { + presentation(pmStartAll); + if(slides[currentslide].flags & FINALSLIDE) break; + } + } EX void start() { currentslide = 0; pconf.scale = 1; pconf.alpha = 1; pmodel = mdDisk; - if(!tour::on) presentation(pmStartAll); + if(!tour::on) { + initialize_slides(); + } else { presentation(pmStop); stop_game();