Index sStepTimes and sNpcStepFuncTables

This commit is contained in:
cbt6
2021-11-03 23:07:05 +08:00
parent 680f5f4458
commit fca863244b
+10 -6
View File
@@ -8349,15 +8349,19 @@ static const SpriteStepFunc sStep8Funcs[] = {
}; };
static const SpriteStepFunc *const sNpcStepFuncTables[] = { static const SpriteStepFunc *const sNpcStepFuncTables[] = {
sStep1Funcs, [MOVE_SPEED_NORMAL] = sStep1Funcs,
sStep2Funcs, [MOVE_SPEED_FAST_1] = sStep2Funcs,
sStep3Funcs, [MOVE_SPEED_FAST_2] = sStep3Funcs,
sStep4Funcs, [MOVE_SPEED_FASTER] = sStep4Funcs,
sStep8Funcs, [MOVE_SPEED_FASTEST] = sStep8Funcs,
}; };
static const s16 sStepTimes[] = { static const s16 sStepTimes[] = {
16, 8, 6, 4, 2 [MOVE_SPEED_NORMAL] = 16,
[MOVE_SPEED_FAST_1] = 8,
[MOVE_SPEED_FAST_2] = 6,
[MOVE_SPEED_FASTER] = 4,
[MOVE_SPEED_FASTEST] = 2,
}; };
static bool8 NpcTakeStep(struct Sprite *sprite) static bool8 NpcTakeStep(struct Sprite *sprite)