diff options
author | scnorton <scnorton@biociphers.org> | 2017-09-10 12:27:32 -0400 |
---|---|---|
committer | scnorton <scnorton@biociphers.org> | 2017-09-10 12:27:32 -0400 |
commit | 6a848e2f9d014a7460137fa0e3d0b334867ef416 (patch) | |
tree | 5ac9c02317acc3c4d9bbeb30c29df81ee1acd6f3 /src | |
parent | b3bcd2872414a513b286b627d0b7df86b5962e2f (diff) |
sub_8128774
Diffstat (limited to 'src')
-rw-r--r-- | src/field_effect_helpers.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/field_effect_helpers.c b/src/field_effect_helpers.c index c4b48a377..a84746a04 100644 --- a/src/field_effect_helpers.c +++ b/src/field_effect_helpers.c @@ -1450,3 +1450,23 @@ u32 FldEff_Sparkle(void) } return 0; } + +void sub_8128774(struct Sprite *sprite) +{ + if (sprite->data0 == 0) + { + if (sprite->animEnded) + { + sprite->invisible = TRUE; + sprite->data0 ++; + } + if (sprite->data0 == 0) + { + return; + } + } + if (++ sprite->data1 >= 35) + { + FieldEffectStop(sprite, FLDEFF_SPARKLE); + } +} |