- renamed internal MELEERANGE constant to deconflict with Actor's MeleeRange member.

This commit is contained in:
Christoph Oelckers 2016-12-10 16:35:48 +01:00
parent d92a814e8c
commit 952e47cfe4
16 changed files with 32 additions and 32 deletions

View file

@ -2093,7 +2093,7 @@ DEFINE_ACTION_FUNCTION(AStateProvider, A_CustomPunch)
damage *= pr_cwpunch() % 8 + 1;
angle = self->Angles.Yaw + pr_cwpunch.Random2() * (5.625 / 256);
if (range == 0) range = MELEERANGE;
if (range == 0) range = DEFMELEERANGE;
pitch = P_AimLineAttack (self, angle, range, &t);
// only use ammo when actually hitting something!