Fix 100 coin stars spawning inside ceilings + being able to spawn multiple 100 coin stars (#541)

* Going below 100 coins and getting 100 coins again will no longer result in multiple 100 coin stars spawning

* 100 coin stars can no longer clip into ceilings

* Renamed set_home_to_mario to spawned_star_set_target_above_mario since it's a more descriptive name of what it does
This commit is contained in:
Reonu authored and GitHub committed 2022-12-06 18:44:16 +01:00
1 parent 1098ea95ea
commit 22b3c9ba08
4 files changed
+16 -4

No files matched your search

+4
View File
@@ -141,6 +141,8 @@ s16 sSourceWarpNodeId;
s32 sDelayedWarpArg;
s8 sTimerRunning;
s8 gNeverEnteredCastle;
// Prevent multiple 100 coin stars from spawning
u8 g100CoinStarSpawned = FALSE;
struct MarioState *gMarioState = &gMarioStates[0];
s8 sWarpCheckpointActive = FALSE;
@@ -1173,6 +1175,8 @@ s32 init_level(void) {
sTransitionTimer = 0;
sSpecialWarpDest = WARP_SPECIAL_NONE;
g100CoinStarSpawned = FALSE;
if (gCurrCreditsEntry == NULL) {
gHudDisplay.flags = HUD_DISPLAY_DEFAULT;
} else {