Author: sveinung
Date: Mon Dec 22 12:06:06 2014
New Revision: 27383

URL: http://svn.gna.org/viewcvs/freeciv?rev=27383&view=rev
Log:
Show trade in middle click info based on ability to establish trade route.

See patch #5585

Modified:
    trunk/client/text.c

Modified: trunk/client/text.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/text.c?rev=27383&r1=27382&r2=27383&view=diff
==============================================================================
--- trunk/client/text.c (original)
+++ trunk/client/text.c Mon Dec 22 12:06:06 2014
@@ -291,7 +291,7 @@
     unit_list_iterate(get_units_in_focus(), pfocus_unit) {
       struct city *hcity = game_city_by_number(pfocus_unit->homecity);
 
-      if (unit_has_type_flag(pfocus_unit, UTYF_TRADE_ROUTE)
+      if (utype_can_do_action(unit_type(pfocus_unit), ACTION_TRADE_ROUTE)
          && can_cities_trade(hcity, pcity)
          && can_establish_trade_route(hcity, pcity)) {
        /* TRANS: "Trade from Warsaw: 5" */


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

Reply via email to