mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 04:00:42 +00:00
- Duke: Restore a little bit of original code to make comparisons between us and the source easier.
This commit is contained in:
parent
ec20f66eda
commit
7607190dad
4 changed files with 5 additions and 5 deletions
|
@ -136,7 +136,7 @@ inline void PlayerSetInput(int pl, ESyncBits bit)
|
|||
|
||||
inline int PlayerNewWeapon(int pl)
|
||||
{
|
||||
return ps[pl].sync.getNewWeapon();
|
||||
return ps[pl].sync.getNewWeapon() - 1;
|
||||
}
|
||||
|
||||
inline void PlayerSetItemUsed(int pl, int num)
|
||||
|
|
|
@ -243,8 +243,8 @@ void hud_input(int plnum)
|
|||
}
|
||||
|
||||
int weap = PlayerNewWeapon(plnum);
|
||||
if (weap > 1 && p->kickback_pic > 0)
|
||||
p->wantweaponfire = weap - 1;
|
||||
if (weap > 0 && p->kickback_pic > 0)
|
||||
p->wantweaponfire = weap;
|
||||
|
||||
// Here we have to be extra careful that the weapons do not get mixed up, so let's keep the code for Duke and RR completely separate.
|
||||
fi.selectweapon(plnum, weap);
|
||||
|
|
|
@ -1299,7 +1299,7 @@ void selectweapon_d(int snum, int weap) // playernum, weaponnum
|
|||
}
|
||||
}
|
||||
}
|
||||
else j = weap - 1;
|
||||
else j = weap;
|
||||
|
||||
k = -1;
|
||||
|
||||
|
|
|
@ -1071,7 +1071,7 @@ void selectweapon_r(int snum, int weap)
|
|||
}
|
||||
}
|
||||
}
|
||||
else j = weap - 1;
|
||||
else j = weap;
|
||||
|
||||
k = -1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue