mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Fix next/previous weapon when the pipebomb detonator is active.
git-svn-id: https://svn.eduke32.com/eduke32@4950 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
7c800f6631
commit
9f910ff10c
1 changed files with 3 additions and 1 deletions
|
@ -2656,7 +2656,7 @@ CHECKINV1:
|
|||
j = (j == 10 ? -1 : 1); // JBF: prev (-1) or next (1) weapon choice
|
||||
i = k;
|
||||
|
||||
while ((k >= 0 && k < 10) || (PLUTOPAK && k == GROW_WEAPON))
|
||||
while ((k >= 0 && k < 11) || (PLUTOPAK && k == GROW_WEAPON))
|
||||
{
|
||||
// this accounts for the expander when handling next/previous
|
||||
|
||||
|
@ -2693,6 +2693,8 @@ CHECKINV1:
|
|||
k--;
|
||||
break;
|
||||
|
||||
case HANDREMOTE_WEAPON:
|
||||
i = k = HANDBOMB_WEAPON;
|
||||
default:
|
||||
k += j;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue