mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-20 06:03:01 +00:00
tour:: call pmStartAll for all slides at start
This commit is contained in:
parent
c816137f8b
commit
9cc4d74da0
12
tour.cpp
12
tour.cpp
@ -456,12 +456,22 @@ EX namespace ss {
|
|||||||
|
|
||||||
EX }
|
EX }
|
||||||
|
|
||||||
|
EX void initialize_slides() {
|
||||||
|
dynamicval<int> cs(currentslide, 0);
|
||||||
|
for(currentslide=0;; currentslide++) {
|
||||||
|
presentation(pmStartAll);
|
||||||
|
if(slides[currentslide].flags & FINALSLIDE) break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
EX void start() {
|
EX void start() {
|
||||||
currentslide = 0;
|
currentslide = 0;
|
||||||
pconf.scale = 1;
|
pconf.scale = 1;
|
||||||
pconf.alpha = 1;
|
pconf.alpha = 1;
|
||||||
pmodel = mdDisk;
|
pmodel = mdDisk;
|
||||||
if(!tour::on) presentation(pmStartAll);
|
if(!tour::on) {
|
||||||
|
initialize_slides();
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
presentation(pmStop);
|
presentation(pmStop);
|
||||||
stop_game();
|
stop_game();
|
||||||
|
Loading…
Reference in New Issue
Block a user