Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2006:
[Freeciv-Dev] (PR#17600) Reenable citizen editing in editor
Home

[Freeciv-Dev] (PR#17600) Reenable citizen editing in editor

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#17600) Reenable citizen editing in editor
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Sat, 3 Jun 2006 10:36:50 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=17600 >

The ability to add or remove citizens in edit mode in the city dialog was 
disabled a short while ago, as it became impossible to open the city 
dialog in edit mode. This tiny patch fixes this.

   - Per
Index: client/editor.c
===================================================================
--- client/editor.c     (revision 12005)
+++ client/editor.c     (working copy)
@@ -253,6 +253,12 @@
   case ETOOL_UNIT:
     return editor_unit(ptile, testing);
   case ETOOL_CITY:
+    if (ptile->city) {
+      if (!testing) {
+        do_map_click(ptile, SELECT_POPUP);
+      }
+      return CURSOR_SELECT;      
+    }
     return editor_city(ptile, testing);
   case ETOOL_PLAYER:
   case ETOOL_DELETE:

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#17600) Reenable citizen editing in editor, Per I. Mathisen <=