mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-05-31 09:21:36 +00:00
- renamed internal MELEERANGE constant to deconflict with Actor's MeleeRange member.
This commit is contained in:
parent
d92a814e8c
commit
952e47cfe4
16 changed files with 32 additions and 32 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue