summaryrefslogtreecommitdiff
path: root/src/object/object53.c
diff options
context:
space:
mode:
authorTal Hayon <talhayon1@gmail.com>2022-04-01 18:19:56 +0300
committerTal Hayon <talhayon1@gmail.com>2022-04-01 18:19:56 +0300
commitd6d7916a460acb7190bd353b3ed86eb85f3a6002 (patch)
treeb6fae3edaf0c04001089806de650b6e7cead8207 /src/object/object53.c
parent9233701a5df02847510df90937f25bccc46eebd2 (diff)
Use fixed point macros where possible
Diffstat (limited to 'src/object/object53.c')
-rw-r--r--src/object/object53.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/object53.c b/src/object/object53.c
index c4717fce..44f567f7 100644
--- a/src/object/object53.c
+++ b/src/object/object53.c
@@ -34,7 +34,7 @@ void sub_08091120(Entity* this) {
this->spriteIndex = gUnk_08122288[this->type].spriteIndex;
this->spriteSettings.draw = 1;
this->spriteRendering.b3 = 2;
- this->zVelocity = 0x2a000;
+ this->zVelocity = Q_16_16(2.625);
InitializeAnimation(this, gUnk_08122288[this->type].animationState);
sub_08004168(this);
}
@@ -44,7 +44,7 @@ void sub_08091198(Entity* this) {
this->spriteSettings.flipY = 1;
}
- if (GravityUpdate(this, 0x2000)) {
+ if (GravityUpdate(this, Q_8_8(32.0))) {
return;
}