Added a fire_event property to the [kill] tag so that a die event is fired.
This commit is contained in:
parent
3f69b97c05
commit
aaae03dec2
1 changed files with 4 additions and 0 deletions
|
@ -917,6 +917,10 @@ bool event_handler::handle_event_command(const queued_event& event_info, const s
|
|||
unit_display::unit_die(*screen,un->first,un->second);
|
||||
}
|
||||
|
||||
if(cfg["fire_event"] == "yes") {
|
||||
gamemap::location loc = un->first;
|
||||
game_events::fire("die",loc,un->first);
|
||||
}
|
||||
units->erase(un++);
|
||||
} else {
|
||||
++un;
|
||||
|
|
Loading…
Add table
Reference in a new issue