mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Fix breakage of EVENT_WEAPKEYx after r2656
git-svn-id: https://svn.eduke32.com/eduke32@2658 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
778e463549
commit
c0851da27b
1 changed files with 1 additions and 5 deletions
|
@ -2705,14 +2705,12 @@ CHECKINV1:
|
|||
|
||||
j = ((sb_snum&(15<<SK_WEAPON_BITS))>>SK_WEAPON_BITS) - 1;
|
||||
|
||||
aGameVars[g_iReturnVarID].val.lValue = j;
|
||||
|
||||
switch ((int32_t)j)
|
||||
{
|
||||
case -1:
|
||||
break;
|
||||
default:
|
||||
VM_OnEvent(EVENT_WEAPKEY1+j,p->i,snum, -1, 0);
|
||||
j = (uint32_t)VM_OnEvent(EVENT_WEAPKEY1+j,p->i,snum, -1, j);
|
||||
break;
|
||||
case 10:
|
||||
VM_OnEvent(EVENT_PREVIOUSWEAPON,p->i,snum, -1, 0);
|
||||
|
@ -2722,8 +2720,6 @@ CHECKINV1:
|
|||
break;
|
||||
}
|
||||
|
||||
j = (uint32_t) aGameVars[g_iReturnVarID].val.lValue;
|
||||
|
||||
if (p->reloading == 1)
|
||||
j = -1;
|
||||
else if ((int32_t)j != -1 && p->kickback_pic == 1 && p->weapon_pos == 1)
|
||||
|
|
Loading…
Reference in a new issue