mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
Merge pull request #1659 from cbt6/step-functions
Use ARRAY_COUNT in sStepTimes for step functions
This commit is contained in:
commit
8a921bb680
@ -8251,11 +8251,11 @@ static const SpriteStepFunc *const sNpcStepFuncTables[] = {
|
||||
};
|
||||
|
||||
static const s16 sStepTimes[] = {
|
||||
[MOVE_SPEED_NORMAL] = 16,
|
||||
[MOVE_SPEED_FAST_1] = 8,
|
||||
[MOVE_SPEED_FAST_2] = 6,
|
||||
[MOVE_SPEED_FASTER] = 4,
|
||||
[MOVE_SPEED_FASTEST] = 2,
|
||||
[MOVE_SPEED_NORMAL] = ARRAY_COUNT(sStep1Funcs),
|
||||
[MOVE_SPEED_FAST_1] = ARRAY_COUNT(sStep2Funcs),
|
||||
[MOVE_SPEED_FAST_2] = ARRAY_COUNT(sStep3Funcs),
|
||||
[MOVE_SPEED_FASTER] = ARRAY_COUNT(sStep4Funcs),
|
||||
[MOVE_SPEED_FASTEST] = ARRAY_COUNT(sStep8Funcs),
|
||||
};
|
||||
|
||||
static bool8 NpcTakeStep(struct Sprite *sprite)
|
||||
|
Loading…
Reference in New Issue
Block a user