slight tweak to drawing order to guarantee the order is a strict ordering

This commit is contained in:
Jérémy Rosen 2008-03-16 18:55:23 +00:00
parent 28983b04ad
commit b1eac81170

View file

@ -111,7 +111,7 @@ public:
//! This returns the order in which the units should be drawn so they overlap
//! propererly.
static int get_drawing_order (const gamemap::location& loc )
{ return (loc.y * 2 + loc.x % 2) * 1024; }
{ return (loc.y * 2 + loc.x % 2) * 1024+loc.x; }
const t_translation::t_list& underlying_mvt_terrain(const location& loc) const
{ return underlying_mvt_terrain(get_terrain(loc)); }