Author: sveinung
Date: Wed Jul 15 14:34:22 2015
New Revision: 29220

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

See bug #23684

Modified:
    branches/S2_5/server/citytools.c

Modified: branches/S2_5/server/citytools.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/citytools.c?rev=29220&r1=29219&r2=29220&view=diff
==============================================================================
--- branches/S2_5/server/citytools.c    (original)
+++ branches/S2_5/server/citytools.c    Wed Jul 15 14:34:22 2015
@@ -1111,7 +1111,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