mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-28 12:30:46 +00:00
- Exhumed: Ensure FillWeapons()
recalculates the pistol clip amount after filling.
* When cheating, this wasn't done which lead to the clip having 6 rounds when via modulo it should have only had 3.
This commit is contained in:
parent
7b8dcde5d2
commit
593bbe10ef
1 changed files with 3 additions and 0 deletions
|
@ -103,6 +103,9 @@ void FillWeapons(short nPlayer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Reset pistol's clip amount.
|
||||||
|
nPistolClip[nPlayer] = PlayerList[nPlayer].nAmmo[kWeaponPistol] % 6;
|
||||||
|
|
||||||
CheckClip(nPlayer);
|
CheckClip(nPlayer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue