diff options
author | GriffinR <griffin.g.richards@gmail.com> | 2020-07-28 17:46:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 17:46:17 -0400 |
commit | e06de33cbdab8ca853bcdd1b4c8909a61aabfcef (patch) | |
tree | d8fc5465a98e738792297ab08ba7216b18696fec /src/mirage_tower.c | |
parent | 4a42e2a710ee550c88a56e48f436b88279337eea (diff) | |
parent | 96b904bf808805daa3de09080e10cc92e24c1f8e (diff) |
Merge branch 'master' into doc-overworld
Diffstat (limited to 'src/mirage_tower.c')
-rw-r--r-- | src/mirage_tower.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mirage_tower.c b/src/mirage_tower.c index 908f1e8ba..c1323c784 100644 --- a/src/mirage_tower.c +++ b/src/mirage_tower.c @@ -168,7 +168,7 @@ const struct PulseBlendSettings gMirageTowerPulseBlendSettings = { .numColors = 15, .delay = 5, .numFadeCycles = -1, - .maxBlendCoeff = 11, + .maxBlendCoeff = -5, .fadeType = 1, .restorePaletteOnUnload = FALSE, .unk7_7 = 1, @@ -412,10 +412,9 @@ void DoMirageTowerCeilingCrumble(void) static void WaitCeilingCrumble(u8 taskId) { - u16 *data = gTasks[taskId].data; - data[1]++; + u16 *data = (u16 *)gTasks[taskId].data; // Either wait 1000 frames, or until all 16 crumble sprites and the one screen-shake task are completed. - if (data[1] == 1000 || data[0] == 17) + if (++data[1] == 1000 || data[0] == 17) gTasks[taskId].func = FinishCeilingCrumbleTask; } @@ -691,7 +690,7 @@ static void DoFossilFallAndSink(u8 taskId) if (gSprites[sUnknown_0203CF0C->spriteId].callback != SpriteCallbackDummy) return; DestroySprite(&gSprites[sUnknown_0203CF0C->spriteId]); - FREE_AND_SET_NULL(sUnknown_0203CF0C->unkC);; + FREE_AND_SET_NULL(sUnknown_0203CF0C->unkC); FREE_AND_SET_NULL(sUnknown_0203CF0C->frameImage); FREE_AND_SET_NULL(sUnknown_0203CF0C->frameImageTiles); FREE_AND_SET_NULL(sUnknown_0203CF0C); |