From 0fdc0e8acc2e48d2c4ef1624c0f21f825bea1bea Mon Sep 17 00:00:00 2001 From: fgenesis Date: Wed, 14 Jan 2015 21:40:54 +0100 Subject: [PATCH] Delete spinycrab glow on death. Fixes #16. --- files/scripts/entities/spinycrab.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/scripts/entities/spinycrab.lua b/files/scripts/entities/spinycrab.lua index 3c56890..8ebab12 100644 --- a/files/scripts/entities/spinycrab.lua +++ b/files/scripts/entities/spinycrab.lua @@ -119,6 +119,9 @@ function enterState(me) quad_alpha(v.glow, 0, 3) bone_alpha(v.eyes, 0, 3) entity_animate(me, "runAway", -1) + elseif entity_isState(me, STATE_DEAD) then + quad_delete(v.glow) + v.glow = 0 end end