mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-25 16:53:52 +00:00
made it so footsteps don't display on tile the unit is on
This commit is contained in:
parent
fc5e669d9d
commit
e1ee506e48
@ -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…
x
Reference in New Issue
Block a user