Author: sveinung
Date: Thu Nov  3 16:09:28 2016
New Revision: 34358

URL: http://svn.gna.org/viewcvs/freeciv?rev=34358&view=rev
Log:
tilesets: make the act dec want icon use offsets.

Make the action_decision_want icon support activity offsets.

See patch #7913

Modified:
    trunk/client/tilespec.c

Modified: trunk/client/tilespec.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/tilespec.c?rev=34358&r1=34357&r2=34358&view=diff
==============================================================================
--- trunk/client/tilespec.c     (original)
+++ trunk/client/tilespec.c     Thu Nov  3 16:09:28 2016
@@ -4215,14 +4215,17 @@
     } else if (punit->activity != ACTIVITY_IDLE) {
       ADD_SPRITE_SIMPLE(t->sprites.unit.connect);
     } else {
-      ADD_SPRITE(t->sprites.unit.go_to, TRUE, FULL_TILE_X_OFFSET + 
t->activity_offset_x,
+      ADD_SPRITE(t->sprites.unit.go_to, TRUE,
+                 FULL_TILE_X_OFFSET + t->activity_offset_x,
                  FULL_TILE_Y_OFFSET + t->activity_offset_y);
     }
   }
 
   if (t->sprites.unit.action_decision_want != NULL
       && should_ask_server_for_actions(punit)) {
-    ADD_SPRITE_FULL(t->sprites.unit.action_decision_want);
+    ADD_SPRITE(t->sprites.unit.action_decision_want, TRUE,
+               FULL_TILE_X_OFFSET + t->activity_offset_x,
+               FULL_TILE_Y_OFFSET + t->activity_offset_y);
   }
 
   if (punit->battlegroup != BATTLEGROUP_NONE) {


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

Reply via email to