diff options
author | cbt6 <91667135+cbt6@users.noreply.github.com> | 2021-11-03 23:07:05 +0800 |
---|---|---|
committer | cbt6 <91667135+cbt6@users.noreply.github.com> | 2021-11-03 23:07:05 +0800 |
commit | fca863244b9097c79dba14154eaeb3719c91bfbe (patch) | |
tree | 8325fc94e4353512757c25a3c7e23263db9ab40e /src | |
parent | 680f5f44583ae69b0149ba01a5f74a73492ff6e7 (diff) |
Index sStepTimes and sNpcStepFuncTables
Diffstat (limited to 'src')
-rw-r--r-- | src/event_object_movement.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/event_object_movement.c b/src/event_object_movement.c index 6c84f0eba..593200893 100644 --- a/src/event_object_movement.c +++ b/src/event_object_movement.c @@ -8349,15 +8349,19 @@ static const SpriteStepFunc sStep8Funcs[] = { }; static const SpriteStepFunc *const sNpcStepFuncTables[] = { - sStep1Funcs, - sStep2Funcs, - sStep3Funcs, - sStep4Funcs, - sStep8Funcs, + [MOVE_SPEED_NORMAL] = sStep1Funcs, + [MOVE_SPEED_FAST_1] = sStep2Funcs, + [MOVE_SPEED_FAST_2] = sStep3Funcs, + [MOVE_SPEED_FASTER] = sStep4Funcs, + [MOVE_SPEED_FASTEST] = sStep8Funcs, }; 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) |