diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2018-02-07 13:49:33 +0100 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2018-02-07 13:49:33 +0100 |
commit | 96ab6f835388ec994c3636480f661beca0e00f24 (patch) | |
tree | 43bb67d5e10d024f8c5ac6c1ca391178c00ea2ac /src/field_map_obj_helpers.c | |
parent | ab5977e7e4148afdb8b863d7b072b02f835ac831 (diff) |
match secret base func and fix struct
Diffstat (limited to 'src/field_map_obj_helpers.c')
-rwxr-xr-x | src/field_map_obj_helpers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/field_map_obj_helpers.c b/src/field_map_obj_helpers.c index 1e0e9b66b..de26cb034 100755 --- a/src/field_map_obj_helpers.c +++ b/src/field_map_obj_helpers.c @@ -549,14 +549,14 @@ bool32 sub_8097E50(struct MapObject *mapObject, struct Sprite *sprite) { if (firstFreeSlot == 16 && gUnknown_020375B8[i] == 0) firstFreeSlot = i; - + if (gUnknown_020375B8[i] == mapObject->localId) { found = TRUE; break; } } - + if (!found && firstFreeSlot != 16) { gUnknown_020375B8[firstFreeSlot] = mapObject->localId; @@ -564,13 +564,13 @@ bool32 sub_8097E50(struct MapObject *mapObject, struct Sprite *sprite) ableToStore = TRUE; // the nonmatching problem is that ableToStore == TRUE isnt being merged with the above ableToStore = TRUE assignment. } } - + if (ableToStore == TRUE) { mapObject->mapobj_bit_12 = TRUE; mapObject->mapobj_bit_9 = TRUE; } - + sprite->data[2] = 1; return TRUE; } |