1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-28 11:00:34 +00:00

ads-game:: switch_replay only while in pause

This commit is contained in:
Zeno Rogue 2022-10-15 14:26:55 +02:00
parent 1d41b80b2a
commit 1ace6d4fff

View File

@ -165,14 +165,17 @@ void replay_animation() {
while(s < -1) { View = chg_shift(-1) * View; sub_optimizeview(); s++; }
View = chg_shift(s) * View; sub_optimizeview();
if(use_duality == 1) nomap = true;
if(use_duality == 2) View = spin(90*degree) * View;
centerover->wall = waNone;
}
}
void switch_replay() {
if(!paused) switch_pause();
in_replay = !in_replay;
if(in_replay) {
paused = true;
anims::period = 1000. * history.back().start / DS_(simspeed);
anims::noframes = anims::period * 60 / 1000;
}