From a1f0b9aff2b16466018f81fda31291b0de688c24 Mon Sep 17 00:00:00 2001 From: terminx Date: Mon, 4 Feb 2008 02:51:51 +0000 Subject: [PATCH] git-svn-id: https://svn.eduke32.com/eduke32@607 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/actors.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/actors.c b/polymer/eduke32/source/actors.c index f7aa7e918..5fa51123c 100644 --- a/polymer/eduke32/source/actors.c +++ b/polymer/eduke32/source/actors.c @@ -558,8 +558,10 @@ int ssp(int i,unsigned int cliptype) //The set sprite function #undef deletesprite void deletespriteEVENT(int s) { + int p; + SetGameVarID(g_iReturnVarID,0, -1, -1); - OnEvent(EVENT_KILLIT, s, -1, -1); + OnEvent(EVENT_KILLIT, s, findplayer(&sprite[s],(int *)&p), p); if (!GetGameVarID(g_iReturnVarID, -1, -1))deletesprite(s); } #define deletesprite deletespriteEVENT