disable freeze in spawner

This commit is contained in:
Sonic Dreamcaster 2024-12-03 16:10:39 -03:00
parent 4d7c4aa71e
commit 913fb99fc9

View File

@ -320,7 +320,7 @@ void Spawner_Playground(void) {
} }
void Spawner(void) { void Spawner(void) {
static bool sFreeze = true; // static bool sFreeze = false;
static s32 sHoldTimer = 0; static s32 sHoldTimer = 0;
ObjCount counter; ObjCount counter;
@ -346,7 +346,7 @@ void Spawner(void) {
} else if (((sContHold->button & R_JPAD) && (sHoldTimer > 15)) || (sContPress->button & R_JPAD)) { } else if (((sContHold->button & R_JPAD) && (sHoldTimer > 15)) || (sContPress->button & R_JPAD)) {
sObjId++; sObjId++;
} else if (gControllerPress[0].button & D_JPAD) { } else if (gControllerPress[0].button & D_JPAD) {
sFreeze ^= 1; // Freeze arwing. // sFreeze ^= 1; // Freeze arwing.
} else if (gControllerPress[0].button & U_JPAD) { } else if (gControllerPress[0].button & U_JPAD) {
Spawner_ObjKill(); Spawner_ObjKill();
} else if (gControllerPress[0].button & R_CBUTTONS) { } else if (gControllerPress[0].button & R_CBUTTONS) {
@ -391,11 +391,11 @@ void Spawner(void) {
} }
/* Freeze arwing */ /* Freeze arwing */
if (sFreeze) { // if (sFreeze) {
gPlayer[0].baseSpeed = 0; // gPlayer[0].baseSpeed = 0;
} else { // } else {
gPlayer[0].baseSpeed = gArwingSpeed; // gPlayer[0].baseSpeed = gArwingSpeed;
} // }
RCP_SetupDL(&gMasterDisp, SETUPDL_83_POINT); RCP_SetupDL(&gMasterDisp, SETUPDL_83_POINT);
gDPSetPrimColor(gMasterDisp++, 0, 0, 255, 255, 0, 255); gDPSetPrimColor(gMasterDisp++, 0, 0, 255, 255, 0, 255);