[Freeciv-Dev] (PR#13356) gtk2 bug: goto when not over the map
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=13356 >
This is caused by a typo in the gtk2 client. This patch fixes it. It
should apply to 2.0 also.
This only shows up in iso-view since squares are used in non-iso view.
This explains why it by default only shows up when running a stand-alone
client since the client changes the topology automatically.
-jason
Index: client/gui-gtk-2.0/mapctrl.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/mapctrl.c,v
retrieving revision 1.51
diff -u -r1.51 mapctrl.c
--- client/gui-gtk-2.0/mapctrl.c 14 May 2005 22:49:02 -0000 1.51
+++ client/gui-gtk-2.0/mapctrl.c 28 Jun 2005 18:03:43 -0000
@@ -333,7 +333,7 @@
gdk_window_get_pointer(overview_canvas->window, &x, &y, 0);
if (x >= 0 && y >= 0
&& x < OVERVIEW_TILE_WIDTH * map.xsize
- && y < OVERVIEW_TILE_WIDTH * map.ysize) {
+ && y < OVERVIEW_TILE_HEIGHT * map.ysize) {
overview_update_line(x, y);
}
}
|
|