Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2005:
[Freeciv-Dev] (PR#12620) [Bugfix] FoW & City destruction & Sub
Home

[Freeciv-Dev] (PR#12620) [Bugfix] FoW & City destruction & Sub

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#12620) [Bugfix] FoW & City destruction & Sub
From: "Marko Lindqvist" <marko.lindqvist@xxxxxxxxxxx>
Date: Thu, 24 Mar 2005 14:19:08 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12620 >


  In case destroyed or transferred city was only reason player saw subs...

  Untested


  - ML


diff -Nurd -X.diff_ignore freeciv/server/citytools.c freeciv/server/citytools.c
--- freeciv/server/citytools.c  2005-03-24 22:44:10.062500000 +0200
+++ freeciv/server/citytools.c  2005-03-25 00:17:09.625000000 +0200
@@ -881,6 +881,9 @@
     update_tile_knowledge(pcity->tile);
   }
 
+  /* Hide any submarines that are no longer visible. */
+  conceal_hidden_units(pgiver, pcity->tile);
+
   map_fog_pseudo_city_area(pgiver, pcity->tile);
 
   /* Build a new palace for free if the player lost her capital and
@@ -1129,6 +1132,9 @@
     }
   } players_iterate_end;
 
+  /* Hide any submarines that are no longer visible. */
+  conceal_hidden_units(pplayer, ptile);
+
   map_fog_pseudo_city_area(pplayer, ptile);
 
   reset_move_costs(ptile);

[Prev in Thread] Current Thread [Next in Thread]