Added a fire_event property to the [kill] tag so that a die event is fired.

This commit is contained in:
Benjamin Drieu 2004-05-13 15:20:16 +00:00
parent 3f69b97c05
commit aaae03dec2

View file

@ -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;