2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 07:07:42 +00:00

Make vector constants class-scope

This commit is contained in:
Jack Andersen
2017-02-11 17:51:59 -10:00
parent 6887d351fb
commit fbbd24f96e
8 changed files with 26 additions and 16 deletions

View File

@@ -1087,17 +1087,17 @@ u32 TransformDamagableTriggerFlags(CStateManager& mgr, TAreaId aId, u32 flags)
u32 ret = 0;
if (flags & 0x01)
ret |= ClassifyVector(rotation * zeus::kForwardVec);
ret |= ClassifyVector(rotation * zeus::CVector3f::skForward);
if (flags & 0x02)
ret |= ClassifyVector(rotation * zeus::kBackVec);
ret |= ClassifyVector(rotation * zeus::CVector3f::skBack);
if (flags & 0x04)
ret |= ClassifyVector(rotation * zeus::kLeftVec);
ret |= ClassifyVector(rotation * zeus::CVector3f::skLeft);
if (flags & 0x08)
ret |= ClassifyVector(rotation * zeus::kRightVec);
ret |= ClassifyVector(rotation * zeus::CVector3f::skRight);
if (flags & 0x10)
ret |= ClassifyVector(rotation * zeus::kUpVec);
ret |= ClassifyVector(rotation * zeus::CVector3f::skUp);
if (flags & 0x20)
ret |= ClassifyVector(rotation * zeus::kDownVec);
ret |= ClassifyVector(rotation * zeus::CVector3f::skDown);
return ret;
}