Author: sveinung
Date: Sat Aug 22 22:37:14 2015
New Revision: 29649

URL: http://svn.gna.org/viewcvs/freeciv?rev=29649&view=rev
Log:
Tgt city center can explain without a player

The presence or absence of a target player is irrelevant to the question if
the explanation for why an action couldn't be done done is the presence or
absence of a city center at the target tile.

See bug #23807

Modified:
    trunk/server/unithand.c

Modified: trunk/server/unithand.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/server/unithand.c?rev=29649&r1=29648&r2=29649&view=diff
==============================================================================
--- trunk/server/unithand.c     (original)
+++ trunk/server/unithand.c     Sat Aug 22 22:37:14 2015
@@ -793,15 +793,13 @@
                                                  DRO_FOREIGN,
                                                  FALSE)) {
     expl->kind = ANEK_DOMESTIC;
-  } else if (tgt_player
-             && (target_tile && tile_city(target_tile))
+  } else if ((target_tile && tile_city(target_tile))
              && !utype_may_act_tgt_city_tile(unit_type(punit),
                                              action_id,
                                              CITYT_CENTER,
                                              TRUE)) {
     expl->kind = ANEK_IS_CITY_CENTER;
-  } else if (tgt_player
-             && (target_tile && !tile_city(target_tile))
+  } else if ((target_tile && !tile_city(target_tile))
              && !utype_may_act_tgt_city_tile(unit_type(punit),
                                              action_id,
                                              CITYT_CENTER,


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

Reply via email to