Author: sveinung
Date: Mon Dec 22 18:37:21 2014
New Revision: 27384

URL: http://svn.gna.org/viewcvs/freeciv?rev=27384&view=rev
Log:
Qt client: Improve test before understanding "b" as Help build Wonder.

Look for the unit type's ability to do the Help Wonder action rather than
checking if it has the HelpWonder flag.

See patch #5586

Modified:
    trunk/client/gui-qt/menu.cpp

Modified: trunk/client/gui-qt/menu.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/menu.cpp?rev=27384&r1=27383&r2=27384&view=diff
==============================================================================
--- trunk/client/gui-qt/menu.cpp        (original)
+++ trunk/client/gui-qt/menu.cpp        Mon Dec 22 18:37:21 2014
@@ -1354,7 +1354,7 @@
        get an eventual error message from the server if we try. */
     if (unit_can_add_or_build_city(punit)) {
       request_unit_build_city(punit);
-    } else if (unit_has_type_flag(punit, UTYF_HELP_WONDER)) {
+    } else if (utype_can_do_action(unit_type(punit), ACTION_HELP_WONDER)) {
       request_unit_caravan_action(punit, ACTION_HELP_WONDER);
     }
   } unit_list_iterate_end;


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to