Author: sveinung Date: Thu May 18 11:31:47 2017 New Revision: 35642 URL: http://svn.gna.org/viewcvs/freeciv?rev=35642&view=rev Log: A non Spy is spent, not caught. It can't escape.
See hrm Feature #657298 Modified: branches/S2_5/server/diplomats.c Modified: branches/S2_5/server/diplomats.c URL: http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/diplomats.c?rev=35642&r1=35641&r2=35642&view=diff ============================================================================== --- branches/S2_5/server/diplomats.c (original) +++ branches/S2_5/server/diplomats.c Thu May 18 11:31:47 2017 @@ -1391,8 +1391,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