follow-up: store square of dist in arwep table

Also includes some additional unrelated #undef's since one was
being added.
This commit is contained in:
nhmall
2025-03-17 07:38:37 -04:00
parent f7a390db11
commit ed406dafe7
2 changed files with 18 additions and 2 deletions

View File

@@ -1210,7 +1210,7 @@ m_balks_at_approaching(int oldappr, struct monst *mtmp, int *pdistmin,
if (pdistmin)
*pdistmin = 2 * 2;
if (pdistmax)
*pdistmax = arw->range * arw->range;
*pdistmax = arw->range;
return -2;
}