Fixed bug #16151: Discover new units on recruit.

Sometimes this has a problem of discovering new units too early, but
those problems already exist with advance_unit, so a more generic
solution is needed to fix those
This commit is contained in:
Iurii Chernyi 2011-08-12 16:34:17 +00:00
parent 3101f0e726
commit c66447d116
2 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@ Version 1.9.8+svn:
* Fixed Naga Sentinel gaining an AMLA after 32 XP instead of the usual 150.
* Gave to Desert Shydes and Desert Stars 30% defense on void terrain.
* Engine:
* Fixed bug #16151: Discover new units on recruit
* Fixed bug #17780: Allow objects to 'increase' damage to 0
* Fixed bug #18098: now recruits and recalls capture village if recruited or
recalled on village castle hex.

View File

@ -604,6 +604,8 @@ void place_recruit(const unit &u, const map_location &recruit_location,
if (resources::game_map->is_village(recruit_location)) {
get_village(recruit_location,new_unit_itor->side());
}
preferences::encountered_units().insert(new_unit_itor->type_id());
}
unit_map::iterator leader = resources::units->begin();