forgot Mar::Obj::isAttackable

This commit is contained in:
PishPish 2024-11-11 00:33:24 -05:00
parent 35b2b3572a
commit 59f9c074b5

View File

@ -650,9 +650,9 @@ Creature* Obj::isAttackable()
const f32 faceDir = getFaceDir();
Parms* parms = C_PARMS;
Vector3f vec
= Vector3f(parms->mGeneral.mMaxAttackRange.mValue * sinf(faceDir), 0.0f, parms->mGeneral.mMaxAttackRange.mValue * cosf(faceDir));
= Vector3f(parms->mGeneral.mMaxAttackRange() * sinf(faceDir), 0.0f, parms->mGeneral.mMaxAttackRange() * cosf(faceDir));
vec += getPosition();
f32 radius = SQUARE(C_GENERALPARMS.mMaxAttackAngle.mValue);
f32 radius = SQUARE(C_GENERALPARMS.mMaxAttackAngle());
Iterator<Piki> iter(pikiMgr);
CI_LOOP(iter)