[Freeciv-Dev] (PR#12620) [Bugfix] FoW & City destruction & Sub
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<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);
- [Freeciv-Dev] (PR#12620) [Bugfix] FoW & City destruction & Sub,
Marko Lindqvist <=
|
|