Author: sveinung
Date: Wed Jul 15 14:33:59 2015
New Revision: 29219

URL: http://svn.gna.org/viewcvs/freeciv?rev=29219&view=rev
Log:
Don't reveal dying units during city transfer.

See bug #23684

Modified:
    branches/S2_6/server/citytools.c

Modified: branches/S2_6/server/citytools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/server/citytools.c?rev=29219&r1=29218&r2=29219&view=diff
==============================================================================
--- branches/S2_6/server/citytools.c    (original)
+++ branches/S2_6/server/citytools.c    Wed Jul 15 14:33:59 2015
@@ -1113,7 +1113,8 @@
   unit_list_iterate(pcenter->units, aunit) {
     players_iterate(aplayer) {
       if (can_player_see_unit(aplayer, aunit)) {
-        if (!BV_ISSET(could_see_unit[i], player_index(aplayer))) {
+        if (!BV_ISSET(could_see_unit[i], player_index(aplayer))
+            && !aunit->server.dying) {
           /* Reveal 'aunit'. */
           send_unit_info(aplayer->connections, aunit);
         }


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

Reply via email to