git-svn-id: https://svn.eduke32.com/eduke32@607 1a8010ca-5511-0410-912e-c29ae57300e0

This commit is contained in:
terminx 2008-02-04 02:51:51 +00:00
parent cd085abf8d
commit a1f0b9aff2

View file

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