Author: sveinung Date: Fri Oct 23 13:38:49 2015 New Revision: 30176 URL: http://svn.gna.org/viewcvs/freeciv?rev=30176&view=rev Log: Remove unused trade route target finder
The function do_unit_establish_trade() is never called without a target city. Remove the code that tries to find a target city at the actor's tile when no target city is specified. See patch #6462 Modified: trunk/server/unithand.c Modified: trunk/server/unithand.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=30176&r1=30175&r2=30176&view=diff ============================================================================== --- trunk/server/unithand.c (original) +++ trunk/server/unithand.c Fri Oct 23 13:38:49 2015 @@ -3333,12 +3333,6 @@ return FALSE; } - /* if no destination city is passed in, - * check whether the unit is already in the city */ - if (!pcity_dest) { - pcity_dest = tile_city(unit_tile(punit)); - } - if (!pcity_dest) { return FALSE; } _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits