Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2003:
[Freeciv-Dev] (PR#4577) xaw: put_unit_pixmap_city_overlays is broken
Home

[Freeciv-Dev] (PR#4577) xaw: put_unit_pixmap_city_overlays is broken

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#4577) xaw: put_unit_pixmap_city_overlays is broken
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Jul 2003 23:33:48 -0700
Reply-to: rt@xxxxxxxxxxxxxx

The implementation of put_unit_pixmap_city_overlays in gui-xaw is 
obviously buggy.

jason

? rc
Index: client/gui-xaw/mapview.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-xaw/mapview.c,v
retrieving revision 1.136
diff -u -r1.136 mapview.c
--- client/gui-xaw/mapview.c    2003/07/11 20:11:42     1.136
+++ client/gui-xaw/mapview.c    2003/07/16 06:32:34
@@ -929,11 +929,14 @@
 
   /* draw overlay pixmaps */
   if (punit->upkeep > 0)
-    pixmap_put_overlay_tile(pm, 0, 1, sprites.upkeep.shield);
+    pixmap_put_overlay_tile(pm, 0, NORMAL_TILE_HEIGHT,
+                           sprites.upkeep.shield);
   if (upkeep_food > 0)
-    pixmap_put_overlay_tile(pm, 0, 1, sprites.upkeep.food[upkeep_food-1]);
+    pixmap_put_overlay_tile(pm, 0, NORMAL_TILE_HEIGHT,
+                           sprites.upkeep.food[upkeep_food-1]);
   if (unhappy > 0)
-    pixmap_put_overlay_tile(pm, 0, 1, sprites.upkeep.unhappy[unhappy-1]);
+    pixmap_put_overlay_tile(pm, 0, NORMAL_TILE_HEIGHT,
+                           sprites.upkeep.unhappy[unhappy-1]);
 }
 
 /**************************************************************************

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#4577) xaw: put_unit_pixmap_city_overlays is broken, Jason Short <=