diff --git a/src/REL/d/a/d_a_t_wood_area.cpp b/src/REL/d/a/d_a_t_wood_area.cpp index 32caa365..e9732211 100644 --- a/src/REL/d/a/d_a_t_wood_area.cpp +++ b/src/REL/d/a/d_a_t_wood_area.cpp @@ -110,8 +110,8 @@ void dAcTWoodArea_c::executeState_Wait() { if (dist.x * dist.x + dist.z * dist.z < attachRadius) { bool someEffectThing = subtype != 1 ? (params & 0xF) != 0 ? false : true : true; if (someEffectThing) { - fn_800298B0(PARTICLE_RESOURCE_ID_MAPPING[8], - &mVec3_c(position.x, position.y + getAttachHeight(), position.z), nullptr, 0, 0, 0, 0, 0); + mVec3_c tmp(position.x, position.y + getAttachHeight(), position.z); + fn_800298B0(PARTICLE_RESOURCE_ID_MAPPING[8], &tmp, nullptr, 0, 0, 0, 0, 0); } dropItems(); } diff --git a/src/d/a/d_a_base.cpp b/src/d/a/d_a_base.cpp index ddcf28f7..efd8f612 100644 --- a/src/d/a/d_a_base.cpp +++ b/src/d/a/d_a_base.cpp @@ -370,8 +370,8 @@ bool dAcBase_c::getDistanceAndAngleToActor(dAcBase_c *actor, f32 distThresh, s16 angleToActorY = targetAngleY(&position, &actor->position); angleToActorX = targetAngleX(&position, &actor->position); - if ((distSquared <= distThresh * distThresh) && (doAbs(s32(rotation.y - angleToActorY)) <= yAngle) && - (doAbs(s32(rotation.x - angleToActorX)) <= xAngle)) { + if ((distSquared <= distThresh * distThresh) && (doAbs(s32(rotation.y.mVal - angleToActorY)) <= yAngle) && + (doAbs(s32(rotation.x.mVal - angleToActorX)) <= xAngle)) { isWithinRange = true; } } diff --git a/src/toBeSorted/special_item_drop_mgr.cpp b/src/toBeSorted/special_item_drop_mgr.cpp index b73b8839..9396bbdc 100644 --- a/src/toBeSorted/special_item_drop_mgr.cpp +++ b/src/toBeSorted/special_item_drop_mgr.cpp @@ -60,7 +60,7 @@ bool spawnSpecialDropItem(SpecialItemDropMgr *mgr, int specialItemId, int roomid s16 currentRot; s16 tempOther; u16 itemid = SPECIAL_ITEM_ARRAY[unk]; - mAng3_c itemRot = {0, 0, 0}; + mAng3_c itemRot(0, 0, 0); if (subtype == 2 || subtype == 6) { currentRot = *rot;