Author: sveinung
Date: Mon Dec 29 12:45:46 2014
New Revision: 27439

URL: http://svn.gna.org/viewcvs/freeciv?rev=27439&view=rev
Log:
A non hostile actor isn't a threat to a square.

Don't count it as one.

See bug #23119

Modified:
    trunk/common/unit.c

Modified: trunk/common/unit.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/unit.c?rev=27439&r1=27438&r2=27439&view=diff
==============================================================================
--- trunk/common/unit.c (original)
+++ trunk/common/unit.c Mon Dec 29 12:45:46 2014
@@ -301,7 +301,7 @@
       if ((omniscient
            || can_player_see_unit(pplayer, punit))
           && pplayers_at_war(pplayer, unit_owner(punit))
-          && (is_actor_unit(punit)
+          && (utype_acts_hostile(unit_type(punit))
               || (is_military_unit(punit) && is_attack_unit(punit)))
           && (is_native_tile(unit_type(punit), ptile)
               || (can_attack_non_native(unit_type(punit))


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to