Author: sveinung
Date: Tue Dec  2 07:04:18 2014
New Revision: 27164

URL: http://svn.gna.org/viewcvs/freeciv?rev=27164&view=rev
Log:
Remove redundant TradeRoute flag check in base_handle_unit_establish_trade()

Whether a unit should be allowed to establish a trade route or not is now action
enabler controlled. The rule that a unit must have the TradeRoute unit type flag
to establish a trade route or enter a market place is handled there. Since
nothing in base_handle_unit_establish_trade() requires the TradeRoute unit type
flag there is no reason to look for it.

See patch #5476

Modified:
    trunk/server/unithand.c

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=27164&r1=27163&r2=27164&view=diff
==============================================================================
--- trunk/server/unithand.c     (original)
+++ trunk/server/unithand.c     Tue Dec  2 07:04:18 2014
@@ -2061,10 +2061,6 @@
     /* Probably died or bribed. */
     log_verbose("base_handle_unit_establish_trade() invalid unit %d",
                 unit_id);
-    return FALSE;
-  }
-
-  if (!unit_has_type_flag(punit, UTYF_TRADE_ROUTE)) {
     return FALSE;
   }
 


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

Reply via email to