Fix EVENT_CHECKTOUCHDAMAGE (the change to how events handle RETURN broke it)

git-svn-id: https://svn.eduke32.com/eduke32@2660 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2012-05-17 20:47:56 +00:00
parent 763aceda83
commit 282036a048

View file

@ -3523,7 +3523,7 @@ void P_CheckWeapon(DukePlayer_t *p)
void P_CheckTouchDamage(DukePlayer_t *p,int32_t j)
{
if (VM_OnEvent(EVENT_CHECKTOUCHDAMAGE, p->i, sprite[p->i].yvel, -1, j) == -1)
if ((j = VM_OnEvent(EVENT_CHECKTOUCHDAMAGE, p->i, sprite[p->i].yvel, -1, j)) == -1)
return;
if ((j&49152) == 49152)