made it so footsteps don't display on tile the unit is on
This commit is contained in:
parent
fc5e669d9d
commit
e1ee506e48
1 changed files with 1 additions and 1 deletions
|
@ -1248,7 +1248,7 @@ void display::draw_footstep(const gamemap::location& loc, int xloc, int yloc)
|
|||
std::vector<gamemap::location>::const_iterator i =
|
||||
std::find(route_.steps.begin(),route_.steps.end(),loc);
|
||||
|
||||
if(i == route_.steps.end())
|
||||
if(i == route_.steps.begin() || i == route_.steps.end())
|
||||
return;
|
||||
|
||||
const bool left_foot = is_even(i - route_.steps.begin());
|
||||
|
|
Loading…
Add table
Reference in a new issue