1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-27 11:57:40 +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

@@ -52,6 +52,7 @@ bool level::simulate() {
at.heading_angle = atan2(h[1] - at.where[1], h[0] - at.where[0]);
history.back() = at;
at.be_consistent();
if(!at.tick(this)) return false;
at.t = goal_t;
history.push_back(at);