Also move footsteps later in the rendering sequence of a tile

(after grid, overlays and black stripes)

The main good point is that we can now better see the footsteps path
on zone not reachable in one turn.  (it was a bit hard before)
This commit is contained in:
Ali El Gariani 2007-08-03 03:14:40 +00:00
parent 02110aa6ad
commit d40f9b788f

View file

@ -330,12 +330,6 @@ void game_display::draw(bool update,bool force)
}
}
// footsteps indicating a movement path may be
// required; this has to be done before fogging
// because you might specify a goto to a place
// your unit can't reach in one turn.
tile_stack_append(footstep_image(*it));
if(!is_shrouded /*|| !on_map*/) {
tile_stack_terrains(*it,tod.id,image_type,ADJACENT_FOREGROUND);
}
@ -383,6 +377,9 @@ void game_display::draw(bool update,bool force)
tile_stack_append(itor->second);
}
// footsteps indicating a movement path
tile_stack_append(footstep_image(*it));
// paint selection and mouseover overlays
if(*it == selectedHex_ && on_map && selected_hex_overlay_ != NULL)
tile_stack_append(selected_hex_overlay_);