diff options
| author | Reinmmar <herwig.orlich@gmail.com> | 2023-09-24 18:03:34 +0200 |
|---|---|---|
| committer | Reinmmar <herwig.orlich@gmail.com> | 2023-09-24 18:03:34 +0200 |
| commit | c19e313df4758a6be19384b1b728283b55ffa92b (patch) | |
| tree | 6dfd01a12fa65989be84db022baf07a57a57df07 /src/script.c | |
| parent | bdfaa7dc1a6fb95db00fe5029e505ffe98efed1d (diff) | |
found more anims, also removing != 0 sometimes
Diffstat (limited to 'src/script.c')
| -rw-r--r-- | src/script.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/script.c b/src/script.c index 2306dd85..29579d77 100644 --- a/src/script.c +++ b/src/script.c @@ -1548,11 +1548,12 @@ void sub_0807F100(Entity* entity, ScriptExecutionContext* context) { } void sub_0807F128(Entity* entity, ScriptExecutionContext* context) { - static const u8 sAnimations[] = { 6, 2, 6, 2, 4, 6, 4, 2 }; + static const u8 sAnimationStates[] = { IdleWest, IdleEast, IdleWest, IdleEast, + IdleSouth, IdleWest, IdleSouth, IdleEast }; static const u8 sValues[] = { 0xa, 0x14, 0x1e, 0x12, 0x1c, 0x26, 0xc, 0x18 }; u32 rand = Random(); - entity->animationState = sAnimations[rand & 7]; + entity->animationState = sAnimationStates[rand & 7]; context->unk_1A = sValues[(rand >> 8) % 8]; } |
