Clear fog/shroud when creating units via debug mode.
This commit is contained in:
parent
e99cc26bba
commit
a09a312a6a
2 changed files with 10 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
|||
Version 1.11.5+dev:
|
||||
* Language and i18n:
|
||||
* Updated translations:
|
||||
* Miscellaneous and bug fixes
|
||||
* Creating a unit via debug mode now clears fog/shroud around the unit.
|
||||
|
||||
Version 1.11.5:
|
||||
* Add-ons client:
|
||||
|
|
|
@ -1046,8 +1046,16 @@ namespace { // Helpers for create_unit()
|
|||
gui.invalidate_unit();
|
||||
unit_display::unit_recruited(loc);
|
||||
|
||||
// Village capture?
|
||||
if ( map.is_village(loc) )
|
||||
actions::get_village(loc, created.side());
|
||||
|
||||
// Update fog/shroud.
|
||||
actions::shroud_clearer clearer;
|
||||
clearer.clear_unit(loc, created);
|
||||
clearer.fire_events();
|
||||
if ( add_result.first.valid() ) // In case sighted events messed with the unit.
|
||||
actions::actor_sighted(*add_result.first);
|
||||
}
|
||||
|
||||
}// Anonymous namespace
|
||||
|
|
Loading…
Add table
Reference in a new issue