diff options
| author | notyourav <65437533+notyourav@users.noreply.github.com> | 2022-09-17 19:25:41 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-17 19:25:41 -0700 |
| commit | 756a8a89da46dade06fad1723de88fa5a82cc2ec (patch) | |
| tree | 4b3983ac4e2e07f44aa6cb567a35828a26fcb0ab /src/object | |
| parent | 08f7fd2b618daf1493b1d4977fb14c7d64efbaba (diff) | |
| parent | 7f3b6a6a44bfe0809d76f01f690ad74356ac9ae8 (diff) | |
Merge pull request #573 from hatal175/TextDispEnquiry
Match some functions
Diffstat (limited to 'src/object')
| -rw-r--r-- | src/object/cutsceneMiscObject.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/object/cutsceneMiscObject.c b/src/object/cutsceneMiscObject.c index 25a7107c..8d971ba2 100644 --- a/src/object/cutsceneMiscObject.c +++ b/src/object/cutsceneMiscObject.c @@ -1107,34 +1107,34 @@ void sub_08095E7C(CutsceneMiscObjectEntity* this, ScriptExecutionContext* ctx) { } } -NONMATCH("asm/non_matching/cutsceneMiscObject/sub_08095EAC.inc", - void sub_08095EAC(CutsceneMiscObjectEntity* this, ScriptExecutionContext* ctx)) { +void sub_08095EAC(Entity* this, ScriptExecutionContext* ctx) { Entity* e = CreateObject(CUTSCENE_MISC_OBJECT, 0x1E, 1); - s32 x, y; + s32 x; + s16 y; + s32 a, b, speed; + s32 vel; if (e != NULL) { - s32 a, b, vel, speed; if (ctx->intVariable == 0) { a = 0x10; b = 0x1F; - vel = 0x4000; + vel = Q_16_16(0.25); speed = 0; } else { a = 0x8; b = 0xF; - vel = 0x40000; + vel = Q_16_16(4); speed = gUnk_08122B0E[Random() & 7]; e->type2 = -1; } - x = a - (Random() & b); - y = a - (Random() & b); - PositionRelative(super, e, x << 16, y << 16); + x = (a - (Random() & b)); + y = (a - (Random() & b)); + PositionRelative(this, e, x << 16, y << 16); e->zVelocity = vel; e->speed = speed; } } -END_NONMATCH #define local ((Type1F*)this) void sub_08095F38(CutsceneMiscObjectEntity* this) { |
