Author: sveinung Date: Tue May 17 15:00:44 2016 New Revision: 32734 URL: http://svn.gna.org/viewcvs/freeciv?rev=32734&view=rev Log: Use ACTPROB_IMPOSSIBLE rather than magic value 0.
See patch #7224 Modified: trunk/server/unittools.c Modified: trunk/server/unittools.c URL: http://svn.gna.org/viewcvs/freeciv/trunk/server/unittools.c?rev=32734&r1=32733&r2=32734&view=diff ============================================================================== --- trunk/server/unittools.c (original) +++ trunk/server/unittools.c Tue May 17 15:00:44 2016 @@ -4202,7 +4202,7 @@ tgt_id = -1; /* Assume impossible until told otherwise. */ - prob = 0; + prob = ACTPROB_IMPOSSIBLE; switch (action_get_target_kind(order.action)) { case ATK_UNITS: _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits