1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-03 13:28:04 +00:00

nilrider:: consistent replays

This commit is contained in:
Zeno Rogue
2022-05-01 16:44:35 +02:00
parent f82043e87e
commit 3072a998ba
4 changed files with 23 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ bool turn(int delta) {
if(!paused && !view_replay && !backing) for(int i=0; i<delta; i++) {
curlev->history.push_back(curlev->current);
curlev->current.be_consistent();
bool b = curlev->current.tick(curlev);
if(b) timer += 1. / tps;
else curlev->history.pop_back();