mirror of
https://github.com/zeldaret/mm.git
synced 2026-08-14 12:24:10 -04:00
cs state cleanup (#1229)
This commit is contained in:
@@ -85,7 +85,7 @@ s32 Actor_TrackPlayerSetFocusHeight(PlayState* play, Actor* actor, Vec3s* headRo
|
||||
actor->focus.pos = actor->world.pos;
|
||||
actor->focus.pos.y += focusHeight;
|
||||
|
||||
if (!((play->csCtx.state != 0) || gDbgCamEnabled)) {
|
||||
if (!((play->csCtx.state != CS_STATE_IDLE) || gDbgCamEnabled)) {
|
||||
yaw = ABS_ALT(BINANG_SUB(actor->yawTowardsPlayer, actor->shape.rot.y));
|
||||
if (yaw >= 0x4300) {
|
||||
Actor_TrackNone(headRot, torsoRot);
|
||||
@@ -93,7 +93,7 @@ s32 Actor_TrackPlayerSetFocusHeight(PlayState* play, Actor* actor, Vec3s* headRo
|
||||
}
|
||||
}
|
||||
|
||||
if ((play->csCtx.state != 0) || gDbgCamEnabled) {
|
||||
if ((play->csCtx.state != CS_STATE_IDLE) || gDbgCamEnabled) {
|
||||
target = play->view.eye;
|
||||
} else {
|
||||
target = player->actor.focus.pos;
|
||||
@@ -127,7 +127,7 @@ s32 Actor_TrackPlayer(PlayState* play, Actor* actor, Vec3s* headRot, Vec3s* tors
|
||||
|
||||
actor->focus.pos = focusPos;
|
||||
|
||||
if (!((play->csCtx.state != 0) || gDbgCamEnabled)) {
|
||||
if (!((play->csCtx.state != CS_STATE_IDLE) || gDbgCamEnabled)) {
|
||||
yaw = ABS_ALT(BINANG_SUB(actor->yawTowardsPlayer, actor->shape.rot.y));
|
||||
if (yaw >= 0x4300) {
|
||||
Actor_TrackNone(headRot, torsoRot);
|
||||
@@ -135,7 +135,7 @@ s32 Actor_TrackPlayer(PlayState* play, Actor* actor, Vec3s* headRot, Vec3s* tors
|
||||
}
|
||||
}
|
||||
|
||||
if ((play->csCtx.state != 0) || gDbgCamEnabled) {
|
||||
if ((play->csCtx.state != CS_STATE_IDLE) || gDbgCamEnabled) {
|
||||
target = play->view.eye;
|
||||
} else {
|
||||
target = player->actor.focus.pos;
|
||||
|
||||
@@ -4003,7 +4003,7 @@ void Interface_DrawItemButtons(PlayState* play) {
|
||||
}
|
||||
|
||||
if (interfaceCtx->tatlCalling && (play->pauseCtx.state == PAUSE_STATE_OFF) &&
|
||||
(play->pauseCtx.debugEditor == DEBUG_EDITOR_NONE) && (play->csCtx.state == 0) &&
|
||||
(play->pauseCtx.debugEditor == DEBUG_EDITOR_NONE) && (play->csCtx.state == CS_STATE_IDLE) &&
|
||||
(sPictoState == PICTO_BOX_STATE_OFF)) {
|
||||
if (sCUpInvisible == 0) {
|
||||
// C-Up Button Texture, Color & Label (Tatl Text)
|
||||
|
||||
Reference in New Issue
Block a user