mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-27 01:14:52 +00:00
racing:: reset footphase for ghosts who have reached the target
This commit is contained in:
parent
6a9eaa91bd
commit
28edeea169
@ -867,7 +867,7 @@ void markers() {
|
||||
if(!ghosts_left) break;
|
||||
ghosts_left--;
|
||||
auto p = std::find_if(ghost.history.begin(), ghost.history.end(), [] (const ghostmoment gm) { return gm.step > ticks - race_start_tick;} );
|
||||
if(p == ghost.history.end()) p--;
|
||||
if(p == ghost.history.end()) p--, p->footphase = 0;
|
||||
cell *w = rti[p->where_id].c;
|
||||
if(!gmatrix.count(w)) continue;
|
||||
dynamicval<charstyle> x(getcs(), ghost.cs);
|
||||
|
Loading…
Reference in New Issue
Block a user