The actual fix for the debug object spawner

This commit is contained in:
Mors 2022-11-18 22:35:26 +03:00
parent 7639472079
commit 10ba7a961e
2 changed files with 2 additions and 4 deletions

View file

@ -509,6 +509,7 @@ void try_print_debug_mario_level_info(void) {
void try_do_mario_debug_object_spawn(void) {
UNUSED s32 unused;
if ((gPlayer1Controller->buttonDown & L_TRIG) && configDebugObjectSpawner) {
//if (sDebugPage == DEBUG_PAGE_STAGEINFO && gDebugInfo[DEBUG_PAGE_ENEMYINFO][7] == 1) {
if (gPlayer1Controller->buttonPressed & R_JPAD) {
spawn_object_relative(0, 0, 100, 200, gCurrentObject, MODEL_KOOPA_SHELL, bhvKoopaShell);
@ -521,7 +522,7 @@ void try_do_mario_debug_object_spawn(void) {
spawn_object_relative(0, 0, 100, 200, gCurrentObject, MODEL_KOOPA_SHELL,
bhvKoopaShellUnderwater);
}
//}
}
}
// TODO: figure out what this is

View file

@ -1904,9 +1904,6 @@ void handle_cheats() {
/* 8133AFA0 0000 */ gControllers[0].buttonDown = (gControllers[0].buttonDown & 0xffffffffffff0000) | 0x0;
}
}
if ((gPlayer1Controller->buttonDown & L_TRIG) && configDebugObjectSpawner)
try_do_mario_debug_object_spawn();
}
u32 mario_has_improved_metal_cap(struct MarioState *m) {