Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2005:
[Freeciv-Dev] (PR#14380) Goto and build a city menu item is always activ
Home

[Freeciv-Dev] (PR#14380) Goto and build a city menu item is always activ

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: mstefek@xxxxxxxxx
Subject: [Freeciv-Dev] (PR#14380) Goto and build a city menu item is always active.
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 22 Oct 2005 12:57:00 -0700
Reply-to: bugs@xxxxxxxxxxx

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

> [mstefek - Wed Oct 19 13:29:44 2005]:
> 
> Even for cruisers.

Here's a patch.

This tiny patch conflicts heavily with the battlegroups patch, so...one
of them should be committed soon.

-jason

Index: client/gui-gtk-2.0/menu.c
===================================================================
--- client/gui-gtk-2.0/menu.c   (revision 11170)
+++ client/gui-gtk-2.0/menu.c   (working copy)
@@ -1348,6 +1348,8 @@
                           can_unit_do_connect(punit, ACTIVITY_RAILROAD));
       menus_set_sensitive("<main>/_Orders/_Connect/_Irrigate",
                           can_unit_do_connect(punit, ACTIVITY_IRRIGATE));
+      menus_set_sensitive("<main>/_Orders/Go _to/_Build city",
+                         unit_flag(punit, F_CITIES));
       menus_set_sensitive("<main>/_Orders/Diplomat\\/Spy Actions",
                           (is_diplomat_unit(punit)
                            && diplomat_can_do_action(punit, 
DIPLOMAT_ANY_ACTION,

[Prev in Thread] Current Thread [Next in Thread]