Author: sveinung Date: Fri May 5 12:45:08 2017 New Revision: 35407 URL: http://svn.gna.org/viewcvs/freeciv?rev=35407&view=rev Log: A non Spy is spent, not caught. It can't escape.
See hrm Feature #657298 Modified: branches/S3_0/server/diplomats.c Modified: branches/S3_0/server/diplomats.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S3_0/server/diplomats.c?rev=35407&r1=35406&r2=35407&view=diff ============================================================================== --- branches/S3_0/server/diplomats.c (original) +++ branches/S3_0/server/diplomats.c Fri May 5 12:45:08 2017 @@ -1939,8 +1939,10 @@ } } - /* FIXME: Reason should be ULR_USED for diplomats? */ - wipe_unit(pdiplomat, ULR_CAUGHT, NULL); + wipe_unit(pdiplomat, + /* A non Spy can't escape. It is therefore spent, not caught. */ + unit_has_type_flag(pdiplomat, UTYF_SPY) ? ULR_CAUGHT : ULR_USED, + NULL); } /************************************************************************** _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits