summaryrefslogtreecommitdiff
path: root/src/mirage_tower.c
diff options
context:
space:
mode:
authorPokeCodec <doremylover456@gmail.com>2020-07-19 15:57:20 -0400
committerPokeCodec <doremylover456@gmail.com>2020-07-28 15:22:15 -0400
commitebcb982e16a0fd6b22185d159234495c44a15874 (patch)
tree1276cdd422e6d0944350a8a91db566356bb2a8fc /src/mirage_tower.c
parente8568b79efa2f12ce929a4db15c8786f1dccc359 (diff)
Change signedness and add casts to avoid implicit conversion warnings
Diffstat (limited to 'src/mirage_tower.c')
-rw-r--r--src/mirage_tower.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mirage_tower.c b/src/mirage_tower.c
index e2f5cefb7..bdddbdbe6 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;
}