Author: jtn
Date: Tue Jun 21 10:04:42 2016
New Revision: 32938

URL: http://svn.gna.org/viewcvs/freeciv?rev=32938&view=rev
Log:
Do not draw unit type sprite at two layers.

Fixes an artifact in Gtk unit select dialog and Qt unit help with
tilesets like Cimpletoon where unit type sprites were drawn with two
superimposed random orientations.

See gna bug #24772.

Modified:
    branches/S2_6/client/tilespec.c

Modified: branches/S2_6/client/tilespec.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/tilespec.c?rev=32938&r1=32937&r2=32938&view=diff
==============================================================================
--- branches/S2_6/client/tilespec.c     (original)
+++ branches/S2_6/client/tilespec.c     Tue Jun 21 10:04:42 2016
@@ -5528,7 +5528,7 @@
       }
 
       sprs += fill_unit_sprite_array(t, sprs, punit, stacked, backdrop);
-    } else if (putype != NULL) {
+    } else if (putype != NULL && layer == LAYER_UNIT) {
       /* Only the sprite for the unit type. */
       sprs += fill_unit_type_sprite_array(t, sprs, putype,
                                           direction8_invalid());


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to