Author: sveinung Date: Fri Oct 23 13:39:48 2015 New Revision: 30180 URL: http://svn.gna.org/viewcvs/freeciv?rev=30180&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: branches/S2_6/server/unithand.c Modified: branches/S2_6/server/unithand.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/unithand.c?rev=30180&r1=30179&r2=30180&view=diff ============================================================================== --- branches/S2_6/server/unithand.c (original) +++ branches/S2_6/server/unithand.c Fri Oct 23 13:39:48 2015 @@ -2564,12 +2564,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