mirror of
https://github.com/DrBeef/RTCWQuest.git
synced 2025-04-22 23:11:02 +00:00
Fix picking up first weapon of akimbo
This commit is contained in:
parent
417d47b7a8
commit
cd0aa637bc
1 changed files with 3 additions and 2 deletions
|
@ -453,8 +453,9 @@ static void CG_ItemPickup( int itemNum ) {
|
|||
weapon = itemid;
|
||||
|
||||
if ( weapon == WP_COLT || weapon == WP_MP40 || weapon == WP_THOMPSON ) {
|
||||
if ( COM_BitCheck( cg.snap->ps.weapons, weapon ) ) {
|
||||
weapon = weapAlts[weapon]; // you have one, now get akimbo (second)
|
||||
int altWeapon = weapAlts[weapon];
|
||||
if ( COM_BitCheck( cg.snap->ps.weapons, weapon ) && COM_BitCheck( cg.predictedPlayerState.weapons, altWeapon ) ) {
|
||||
weapon = altWeapon; // you have one, now get akimbo (second)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue