[Freeciv-Dev] PATCH: fixing a problem when displaying nukes
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
The following patch fixes a problem that occasionally occurs
when dropping nukes: the quantity (x-1+abs_x0-map_view_x0)
may get negative values, hence, nuke tiles won't be displayed.
Patch against version 1.8.0.
--rizos
File affected: client/mapview.c
--- mapview.cc Wed May 19 01:59:38 1999
+++ mapview.c Wed May 19 01:59:38 1999
@@ -1011,14 +1011,15 @@
0, 0,
NORMAL_TILE_WIDTH,
NORMAL_TILE_HEIGHT,
- (x-1+abs_x0-map_view_x0)*NORMAL_TILE_WIDTH,
- (y-1+abs_y0-map_view_y0)*NORMAL_TILE_HEIGHT);
+ map_canvas_adjust_x(x-1+abs_x0)*NORMAL_TILE_WIDTH,
+ map_canvas_adjust_y(y-1+abs_y0)*NORMAL_TILE_HEIGHT);
}
XSync(display, 0);
sleep(1);
- update_map_canvas(abs_x0-map_view_x0-1, abs_y0-map_view_y0-1,
+ update_map_canvas(map_canvas_adjust_x(abs_x0-1),
+ map_canvas_adjust_y(abs_y0-1),
3, 3, 1);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] PATCH: fixing a problem when displaying nukes,
rizos <=
|
|