Author: jtn Date: Tue Jun 21 10:27:41 2016 New Revision: 32940 URL: http://svn.gna.org/viewcvs/freeciv?rev=32940&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_5/client/tilespec.c Modified: branches/S2_5/client/tilespec.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/client/tilespec.c?rev=32940&r1=32939&r2=32940&view=diff ============================================================================== --- branches/S2_5/client/tilespec.c (original) +++ branches/S2_5/client/tilespec.c Tue Jun 21 10:27:41 2016 @@ -5099,7 +5099,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