[Freeciv-Dev] (PR#12190) next-city is too slow
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12190 >
From PR#12187:
Christian Knoke wrote:
> Dunno whether this is related, but: when you scroll through the find city
> list with the cursor, civclient isn't really responsive.
That's unrelated but this patch fixes it (for 2.0 and dev branch). Does
this fix the problem? I don't really know why the new city is centered
at all...but since it is we can't avoid doing an update of some sort.
-jason
Index: client/gui-gtk-2.0/citydlg.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/client/gui-gtk-2.0/citydlg.c,v
retrieving revision 1.116
diff -u -r1.116 citydlg.c
--- client/gui-gtk-2.0/citydlg.c 8 Feb 2005 22:14:17 -0000 1.116
+++ client/gui-gtk-2.0/citydlg.c 9 Feb 2005 18:27:19 -0000
@@ -2880,7 +2880,9 @@
reset_worklist(pdialog->production.worklist,
&pdialog->pcity->worklist, pdialog->pcity);
+ can_slide = FALSE;
center_tile_mapcanvas(pdialog->pcity->tile);
+ can_slide = TRUE;
set_cityopt_values(pdialog); /* need not be in refresh_city_dialog */
refresh_city_dialog(pdialog->pcity);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#12190) next-city is too slow,
Jason Short <=
|
|