diff options
author | golem galvanize <golemgalvanize@github.com> | 2018-02-07 19:30:58 -0500 |
---|---|---|
committer | golem galvanize <golemgalvanize@github.com> | 2018-02-07 19:30:58 -0500 |
commit | 4a903279df847024148b823990a317e79bc23c9f (patch) | |
tree | b18c801e9ed8fea9b39b0b8bda6a567ca2b24e32 /src/field_map_obj_helpers.c | |
parent | 1b303aeee87095400aae7c0d1ff9f94e83594691 (diff) | |
parent | 48e63979c8a131bc059974194bd548f60dcdd24c (diff) |
decompile task_new_game_prof_birch_speech_4
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; } |