From 186cbcc8cc2077ee3ece0081fdf3e98852890a49 Mon Sep 17 00:00:00 2001 From: LazyBoot Date: Fri, 9 Oct 2020 23:32:12 +0200 Subject: [PATCH] trigger death handler on engine shutdown as well --- hoggit/spawner.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hoggit/spawner.lua b/hoggit/spawner.lua index 6188c73..51613a1 100644 --- a/hoggit/spawner.lua +++ b/hoggit/spawner.lua @@ -193,7 +193,7 @@ HOGGIT.setZombie = function(group, spawner, state) end HOGGIT._deathHandler = function(event) - if event.id == world.event.S_EVENT_CRASH or event.id == world.event.S_EVENT_DEAD then + if event.id == world.event.S_EVENT_CRASH or event.id == world.event.S_EVENT_DEAD or event.id == world.event.S_EVENT_ENGINE_SHUTDOWN then HOGGIT.debug_text("SOMETHING DEAD YO", 10) if not event.initiator then return end if not event.initiator.getGroup then return end