mirror of
https://github.com/projectPiki/pikmin2.git
synced 2025-01-19 12:32:09 +00:00
forgot Mar::Obj::isAttackable
This commit is contained in:
parent
35b2b3572a
commit
59f9c074b5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user