mirror of
https://github.com/zeldaret/tmc
synced 2026-08-19 05:52:33 -04:00
Use fixed point macros where possible
This commit is contained in:
@@ -177,7 +177,7 @@ void sub_0801917C(PlayerItemBowEntity* this) {
|
||||
super->action = 3;
|
||||
super->direction ^= 0x10;
|
||||
super->speed = 0x100;
|
||||
super->zVelocity = 0x8000;
|
||||
super->zVelocity = Q_16_16(0.5);
|
||||
super->flags &= 0x7f;
|
||||
InitializeAnimation(super, 6);
|
||||
} else {
|
||||
@@ -235,7 +235,7 @@ void sub_08019410(Entity* this) {
|
||||
void sub_08019444(Entity* this) {
|
||||
GetNextFrame(this);
|
||||
LinearMoveUpdate(this);
|
||||
if (GravityUpdate(this, 0x2000) == 0) {
|
||||
if (GravityUpdate(this, Q_8_8(32.0)) == 0) {
|
||||
DeleteThisEntity();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ void sub_080AD040(PlayerItemHeldObjectEntity* this) {
|
||||
ProcessMovement10(super);
|
||||
}
|
||||
}
|
||||
if (GravityUpdate(super, 0x2000) == 0) {
|
||||
if (GravityUpdate(super, Q_8_8(32.0)) == 0) {
|
||||
(child->base).zVelocity = super->zVelocity;
|
||||
(child->base).x = super->x;
|
||||
(child->base).y = super->y;
|
||||
@@ -145,7 +145,7 @@ void sub_080AD040(PlayerItemHeldObjectEntity* this) {
|
||||
} else {
|
||||
SoundReq(SFX_PLACE_OBJ);
|
||||
super->timer++;
|
||||
super->zVelocity = 0x10000;
|
||||
super->zVelocity = Q_16_16(1.0);
|
||||
super->speed /= 2;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ void sub_0807037C(Entity* this) {
|
||||
void sub_08070398(Entity* this) {
|
||||
GetNextFrame(this);
|
||||
LinearMoveUpdate(this);
|
||||
if (GravityUpdate(this, 0x2000) == 0) {
|
||||
if (GravityUpdate(this, Q_8_8(32.0)) == 0) {
|
||||
DeleteThisEntity();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user