summaryrefslogtreecommitdiff
path: root/src/berry_crush.c
diff options
context:
space:
mode:
authorGriffinR <griffin.g.richards@gmail.com>2021-11-19 17:04:04 -0500
committerGriffinR <griffin.g.richards@gmail.com>2021-11-19 20:36:59 -0500
commitb2c74cae8456cfa10a27a3a2d4b97971fd964b6d (patch)
tree0c98bbc5052c586cc0957ab7edad600021a9f769 /src/berry_crush.c
parentcd4462f58cce785f408af26a7a3b11ad08575a5a (diff)
Sync global
Diffstat (limited to 'src/berry_crush.c')
-rw-r--r--src/berry_crush.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/berry_crush.c b/src/berry_crush.c
index 68807101c..a52b7516c 100644
--- a/src/berry_crush.c
+++ b/src/berry_crush.c
@@ -1061,31 +1061,31 @@ static void SaveResults(void)
switch (sGame->playerCount)
{
case 2:
- if (sGame->pressingSpeed > gSaveBlock2Ptr->berryCrush.berryCrushResults[0])
+ if (sGame->pressingSpeed > gSaveBlock2Ptr->berryCrush.pressingSpeeds[0])
{
sGame->newRecord = TRUE;
- gSaveBlock2Ptr->berryCrush.berryCrushResults[0] = sGame->pressingSpeed;
+ gSaveBlock2Ptr->berryCrush.pressingSpeeds[0] = sGame->pressingSpeed;
}
break;
case 3:
- if (sGame->pressingSpeed > gSaveBlock2Ptr->berryCrush.berryCrushResults[1])
+ if (sGame->pressingSpeed > gSaveBlock2Ptr->berryCrush.pressingSpeeds[1])
{
sGame->newRecord = TRUE;
- gSaveBlock2Ptr->berryCrush.berryCrushResults[1] = sGame->pressingSpeed;
+ gSaveBlock2Ptr->berryCrush.pressingSpeeds[1] = sGame->pressingSpeed;
}
break;
case 4:
- if (sGame->pressingSpeed > gSaveBlock2Ptr->berryCrush.berryCrushResults[2])
+ if (sGame->pressingSpeed > gSaveBlock2Ptr->berryCrush.pressingSpeeds[2])
{
sGame->newRecord = TRUE;
- gSaveBlock2Ptr->berryCrush.berryCrushResults[2] = sGame->pressingSpeed;
+ gSaveBlock2Ptr->berryCrush.pressingSpeeds[2] = sGame->pressingSpeed;
}
break;
case 5:
- if (sGame->pressingSpeed > gSaveBlock2Ptr->berryCrush.berryCrushResults[3])
+ if (sGame->pressingSpeed > gSaveBlock2Ptr->berryCrush.pressingSpeeds[3])
{
sGame->newRecord = TRUE;
- gSaveBlock2Ptr->berryCrush.berryCrushResults[3] = sGame->pressingSpeed;
+ gSaveBlock2Ptr->berryCrush.pressingSpeeds[3] = sGame->pressingSpeed;
}
break;
}
@@ -3192,10 +3192,10 @@ void ShowBerryCrushRankings(void)
ScriptContext2_Enable();
taskId = CreateTask(Task_ShowBerryCrushRankings, 0);
- gTasks[taskId].tPressingSpeeds(0) = gSaveBlock2Ptr->berryCrush.berryCrushResults[0];
- gTasks[taskId].tPressingSpeeds(1) = gSaveBlock2Ptr->berryCrush.berryCrushResults[1];
- gTasks[taskId].tPressingSpeeds(2) = gSaveBlock2Ptr->berryCrush.berryCrushResults[2];
- gTasks[taskId].tPressingSpeeds(3) = gSaveBlock2Ptr->berryCrush.berryCrushResults[3];
+ gTasks[taskId].tPressingSpeeds(0) = gSaveBlock2Ptr->berryCrush.pressingSpeeds[0];
+ gTasks[taskId].tPressingSpeeds(1) = gSaveBlock2Ptr->berryCrush.pressingSpeeds[1];
+ gTasks[taskId].tPressingSpeeds(2) = gSaveBlock2Ptr->berryCrush.pressingSpeeds[2];
+ gTasks[taskId].tPressingSpeeds(3) = gSaveBlock2Ptr->berryCrush.pressingSpeeds[3];
}
static void PrintTimer(struct BerryCrushGame_Gfx * gfx, u16 frames)