Author: sveinung Date: Fri May 5 12:29:53 2017 New Revision: 35403 URL: http://svn.gna.org/viewcvs/freeciv?rev=35403&view=rev Log: A non Spy is spent, not caught. It can't escape.
See hrm Feature #657298 Modified: trunk/server/diplomats.c Modified: trunk/server/diplomats.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/diplomats.c?rev=35403&r1=35402&r2=35403&view=diff ============================================================================== --- trunk/server/diplomats.c (original) +++ trunk/server/diplomats.c Fri May 5 12:29:53 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