parent
8e9d4b1f82
commit
50715621c7
1 changed files with 3 additions and 0 deletions
|
@ -651,6 +651,9 @@ place_recruit_result place_recruit(unit_ptr u, const map_location &recruit_locat
|
|||
resources::whiteboard->on_gamestate_change();
|
||||
|
||||
resources::game_events->pump().fire("unit_placed", current_loc);
|
||||
if(!new_unit_itor.valid()) {
|
||||
return place_recruit_result { true, 0, false };
|
||||
}
|
||||
|
||||
if ( fire_event ) {
|
||||
const std::string event_name = is_recall ? "prerecall" : "prerecruit";
|
||||
|
|
Loading…
Add table
Reference in a new issue