diff --git a/src/game/ingame_menu.c b/src/game/ingame_menu.c index d793ed11..d578ea61 100644 --- a/src/game/ingame_menu.c +++ b/src/game/ingame_menu.c @@ -2760,7 +2760,7 @@ s16 render_pause_courses_and_castle(void) { render_pause_red_coins(); /* Always allow exiting from course */ - if (TRUE || (gMarioStates[0].action & ACT_FLAG_PAUSE_EXIT) || (Cheats.EnableCheats && Cheats.ExitAnywhere)) { + if (TRUE || (gMarioStates[0].action & ACT_FLAG_PAUSE_EXIT)) { render_pause_course_options(99, 93, &gDialogLineNum, 15); } diff --git a/src/game/mario.c b/src/game/mario.c index 7fd17716..cb269c2e 100644 --- a/src/game/mario.c +++ b/src/game/mario.c @@ -1261,21 +1261,7 @@ void squish_mario_model(struct MarioState *m) { // If no longer squished, scale back to default. // Also handles the Tiny Mario and Huge Mario cheats. if (m->squishTimer == 0) { - if (Cheats.EnableCheats) { - if (Cheats.HugeMario) { - vec3f_set(m->marioObj->header.gfx.scale, 2.5f, 2.5f, 2.5f); - } - else if (Cheats.TinyMario) { - vec3f_set(m->marioObj->header.gfx.scale, 0.2f, 0.2f, 0.2f); - } - else { - vec3f_set(m->marioObj->header.gfx.scale, 1.0f, 1.0f, 1.0f); - } - } - else { - vec3f_set(m->marioObj->header.gfx.scale, 1.0f, 1.0f, 1.0f); - } - + vec3f_set(m->marioObj->header.gfx.scale, 1.0f, 1.0f, 1.0f); } // If timer is less than 16, rubber-band Mario's size scale up and down. else if (m->squishTimer <= 16) { @@ -1847,21 +1833,6 @@ static u8 prevent_hang(u32 hangPreventionActions[], u8* hangPreventionIndex) { */ s32 execute_mario_action(UNUSED struct Object *o) { s32 inLoop = TRUE; - /** - * Cheat stuff - */ - if (Cheats.EnableCheats) - { - if (Cheats.GodMode) - gMarioState->health = 0x880; - - if (Cheats.InfiniteLives && gMarioState->numLives < 99) - gMarioState->numLives += 1; - - if (Cheats.SuperSpeed && gMarioState->forwardVel > 0) - gMarioState->forwardVel += 100; - } - // hide unconnected players if (gNetworkPlayers[gMarioState->playerIndex].type != NPT_LOCAL) { if (!gNetworkPlayers[gMarioState->playerIndex].connected) { @@ -1871,9 +1842,23 @@ s32 execute_mario_action(UNUSED struct Object *o) { } } + /** + * Cheat stuff + */ + if (Cheats.EnableCheats) { + if (Cheats.GodMode) + gMarioState->health = 0x880; + + if (Cheats.InfiniteLives && gMarioState->numLives < 99) + gMarioState->numLives += 1; + + if (Cheats.SuperSpeed && gMarioState->controller->stickMag > 0.5f) + gMarioState->forwardVel += 100; + } /** * End of cheat stuff */ + if (gMarioState->action) { if (gMarioState->action != ACT_BUBBLED) { gMarioState->marioObj->header.gfx.node.flags &= ~GRAPH_RENDER_INVISIBLE; diff --git a/src/game/options_menu.c b/src/game/options_menu.c index 9b771254..db47d9f1 100644 --- a/src/game/options_menu.c +++ b/src/game/options_menu.c @@ -280,9 +280,6 @@ static struct Option optsCheats[] = { DEF_OPT_TOGGLE( optsCheatsStr[3], &Cheats.InfiniteLives ), DEF_OPT_TOGGLE( optsCheatsStr[4], &Cheats.SuperSpeed ), DEF_OPT_TOGGLE( optsCheatsStr[5], &Cheats.Responsive ), - DEF_OPT_TOGGLE( optsCheatsStr[6], &Cheats.ExitAnywhere ), - DEF_OPT_TOGGLE( optsCheatsStr[7], &Cheats.HugeMario ), - DEF_OPT_TOGGLE( optsCheatsStr[8], &Cheats.TinyMario ), }; diff --git a/src/pc/cheats.h b/src/pc/cheats.h index eaf71ab4..531c392f 100644 --- a/src/pc/cheats.h +++ b/src/pc/cheats.h @@ -10,9 +10,6 @@ struct CheatList { bool InfiniteLives; bool SuperSpeed; bool Responsive; - bool ExitAnywhere; - bool HugeMario; - bool TinyMario; }; extern struct CheatList Cheats; diff --git a/src/pc/controller/controller_keyboard_debug.c b/src/pc/controller/controller_keyboard_debug.c index 8b4df323..94f7b351 100644 --- a/src/pc/controller/controller_keyboard_debug.c +++ b/src/pc/controller/controller_keyboard_debug.c @@ -5,7 +5,7 @@ #ifdef DEBUG -static u8 warpToLevel = LEVEL_SSL; +static u8 warpToLevel = LEVEL_CCM; #define SCANCODE_0 0x0B #define SCANCODE_3 0x04