- some refactoring of P_AproxDistance calls into newly defined AActor method AproxDistance.
The main reason here is to reduce the number of instances where AActor::x and AActor::y are being referenced.
This commit is contained in:
parent
1f34372abc
commit
1e2ce9a622
25 changed files with 1293 additions and 1286 deletions
|
|
@ -158,7 +158,7 @@ DEFINE_ACTION_FUNCTION(AActor, A_FiredChase)
|
|||
{
|
||||
self->special2 = 0;
|
||||
self->velx = self->vely = 0;
|
||||
dist = P_AproxDistance (self->x - target->x, self->y - target->y);
|
||||
dist = self->AproxDistance (target);
|
||||
if (dist < FIREDEMON_ATTACK_RANGE)
|
||||
{
|
||||
if (pr_firedemonchase() < 30)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue