more pre vs post decrement fixes

This commit is contained in:
Bill Currie 2003-03-17 06:48:05 +00:00
parent fec71a3687
commit 432559543a

View file

@ -294,7 +294,7 @@ W_FireShotgun =
msg_entity = self;
WriteByte (MSG_ONE, SVC_SMALLKICK);
self.currentammo = self.ammo_shells--;
self.currentammo = --self.ammo_shells;
dir = aim (self, 100000);
FireBullets (6, dir, '0.04 0.04 0');
};
@ -362,7 +362,7 @@ T_MissileTouch =
void ()
W_FireRocket =
{
self.currentammo = self.ammo_rockets--;
self.currentammo = --self.ammo_rockets;
sound (self, CHAN_WEAPON, "weapons/sgun1.wav", 1, ATTN_NORM);
@ -471,7 +471,7 @@ W_FireLightning =
msg_entity = self;
WriteByte (MSG_ONE, SVC_SMALLKICK);
self.currentammo = self.ammo_cells--;
self.currentammo = --self.ammo_cells;
org = self.origin + '0 0 16';
@ -523,7 +523,7 @@ GrenadeTouch =
void ()
W_FireGrenade =
{
self.currentammo = self.ammo_rockets--;
self.currentammo = --self.ammo_rockets;
sound (self, CHAN_WEAPON, "weapons/grenade.wav", 1, ATTN_NORM);
@ -636,7 +636,7 @@ W_FireSpikes =
sound (self, CHAN_WEAPON, "weapons/rocket1i.wav", 1, ATTN_NORM);
self.attack_finished = time + 0.2;
self.currentammo = self.ammo_nails--;
self.currentammo = --self.ammo_nails;
dir = aim (self, 1000);
launch_spike (self.origin + '0 0 16' + v_right * ox, dir);