mirror of
https://github.com/zeldaret/mm.git
synced 2026-09-04 10:11:51 -04:00
Misc Clean (#1680)
* vramu32 in Overlay_Relocate * Actor_SetColorFilter args * Effect Hitmark enum * Actor_WorldToActorCoords * Some fault clean up * contoller.h * macros.h no longer needs stdint.h
This commit is contained in:
+2
-2
@@ -1148,12 +1148,12 @@ s32 SubS_MoveActorToPoint(Actor* actor, Vec3f* point, s16 rotStep) {
|
||||
f32 distSqBefore;
|
||||
f32 distSqAfter;
|
||||
|
||||
Actor_OffsetOfPointInActorCoords(actor, &offsetBefore, point);
|
||||
Actor_WorldToActorCoords(actor, &offsetBefore, point);
|
||||
Math_SmoothStepToS(&actor->world.rot.y, SubS_GetDistSqAndOrientPoints(point, &actor->world.pos, &distSqBefore), 4,
|
||||
rotStep, 1);
|
||||
actor->shape.rot.y = actor->world.rot.y;
|
||||
Actor_MoveWithGravity(actor);
|
||||
Actor_OffsetOfPointInActorCoords(actor, &offsetAfter, point);
|
||||
Actor_WorldToActorCoords(actor, &offsetAfter, point);
|
||||
SubS_GetDistSqAndOrientPoints(point, &actor->world.pos, &distSqAfter);
|
||||
return ((offsetBefore.z > 0.0f) && (offsetAfter.z <= 0.0f)) ? true : false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user