- some cleanup on the weapon slot interface.

This really shouldn't make any decisions from directly reading weapon class defaults.
This commit is contained in:
Christoph Oelckers 2018-11-25 07:21:02 +01:00
commit 8fa16b6c30
5 changed files with 33 additions and 27 deletions

View file

@ -3095,7 +3095,7 @@ void FinishDehPatch ()
}
else
{
weap->WeaponFlags |= WIF_DEHAMMO;
weap->bDehAmmo = true;
weap->AmmoUse1 = 0;
// to allow proper checks in CheckAmmo we have to find the first attack pointer in the Fire sequence
// and set its default ammo use as the weapon's AmmoUse1.