possible fix for invisible recruit units,
...if it doesn't work please revert this and commit 29318
This commit is contained in:
parent
070a207707
commit
51dacbbb6a
1 changed files with 2 additions and 1 deletions
|
@ -196,7 +196,8 @@ std::string recruit_unit(const gamemap& map, const int side, unit_map& units,
|
|||
LOG_NG << "firing prerecruit event\n";
|
||||
game_events::fire("prerecruit",recruit_location);
|
||||
}
|
||||
new_unit.set_hidden(false);
|
||||
const unit_map::iterator new_unit_itor = units.find(recruit_location);
|
||||
if(new_unit_itor != units.end()) new_unit_itor->second.set_hidden(false);
|
||||
if(show)unit_display::unit_recruited(recruit_location);
|
||||
if (is_recall)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue