summaryrefslogtreecommitdiff
path: root/src/field_effect_helpers.c
diff options
context:
space:
mode:
authornullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com>2018-12-05 22:31:01 +0800
committernullableVoidPtr <30564701+nullableVoidPtr@users.noreply.github.com>2018-12-06 10:38:28 +0800
commitf9ff7316d5c7277eb7482e30121388cd65f4ecfc (patch)
treeee8f4a9c338f880a3585d6e9ed9ed695f27cef3d /src/field_effect_helpers.c
parent405f1bb529809b8169364737087189df0fcca1d2 (diff)
Remove uses of INVALID_ defines, clean up some arrays with constants, and spaces -> tabs
Diffstat (limited to 'src/field_effect_helpers.c')
-rwxr-xr-xsrc/field_effect_helpers.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/field_effect_helpers.c b/src/field_effect_helpers.c
index a68a72c76..3046eccd5 100755
--- a/src/field_effect_helpers.c
+++ b/src/field_effect_helpers.c
@@ -1007,15 +1007,15 @@ void UpdateSurfBlobFieldEffect(struct Sprite *sprite)
static void SynchroniseSurfAnim(struct EventObject *eventObject, struct Sprite *sprite)
{
u8 surfBlobDirectionAnims[] = {
- 0, // DIR_NONE
- 0, // DIR_SOUTH
- 1, // DIR_NORTH
- 2, // DIR_WEST
- 3, // DIR_EAST
- 0,
- 0,
- 1,
- 1,
+ [DIR_NONE] = 0,
+ [DIR_SOUTH] = 0,
+ [DIR_NORTH] = 1,
+ [DIR_WEST] = 2,
+ [DIR_EAST] = 3,
+ [DIR_SOUTHWEST] = 0,
+ [DIR_SOUTHEAST] = 0,
+ [DIR_NORTHWEST] = 1,
+ [DIR_NORTHEAST] = 1,
};
if (sub_8155640(sprite) == 0)