Fix the previous/next weapon events

git-svn-id: https://svn.eduke32.com/eduke32@2675 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2012-05-19 14:39:29 +00:00
parent 5e60b989ab
commit 5207f91978

View file

@ -2710,13 +2710,13 @@ CHECKINV1:
case -1:
break;
default:
j = (uint32_t)VM_OnEvent(EVENT_WEAPKEY1+j,p->i,snum, -1, j);
j = VM_OnEvent(EVENT_WEAPKEY1+j,p->i,snum, -1, j);
break;
case 10:
VM_OnEvent(EVENT_PREVIOUSWEAPON,p->i,snum, -1, 0);
j = VM_OnEvent(EVENT_PREVIOUSWEAPON,p->i,snum, -1, j);
break;
case 11:
VM_OnEvent(EVENT_NEXTWEAPON,p->i,snum, -1, 0);
j = VM_OnEvent(EVENT_NEXTWEAPON,p->i,snum, -1, j);
break;
}