mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-04-27 13:13:16 +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;
|
if(!ghosts_left) break;
|
||||||
ghosts_left--;
|
ghosts_left--;
|
||||||
auto p = std::find_if(ghost.history.begin(), ghost.history.end(), [] (const ghostmoment gm) { return gm.step > ticks - race_start_tick;} );
|
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;
|
cell *w = rti[p->where_id].c;
|
||||||
if(!gmatrix.count(w)) continue;
|
if(!gmatrix.count(w)) continue;
|
||||||
dynamicval<charstyle> x(getcs(), ghost.cs);
|
dynamicval<charstyle> x(getcs(), ghost.cs);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user