racing:: reset footphase for ghosts who have reached the target

This commit is contained in:
Zeno Rogue 2018-11-26 23:18:03 +01:00
parent 6a9eaa91bd
commit 28edeea169
1 changed files with 1 additions and 1 deletions

View File

@ -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);