- use literal constant for this.

This commit is contained in:
Christoph Oelckers 2022-09-27 00:13:54 +02:00
parent 6a0b552352
commit e309d05161
4 changed files with 7 additions and 7 deletions

View file

@ -229,7 +229,7 @@ static void batMoveDodgeDown(DBloodActor* actor)
t2 -= FixedToFloat(pDudeInfo->sideSpeed);
});
actor->vel.Z = FixedToFloat(0x44444);
actor->vel.Z = 4.26666;
}
static void batThinkChase(DBloodActor* actor)
@ -340,7 +340,7 @@ static void batMoveSwoop(DBloodActor* actor)
AdjustVelocity(actor, ADJUSTER{
t1 += FixedToFloat(nAccel) * 0.5;
});
actor->vel.Z = FixedToFloat(0x44444);
actor->vel.Z = 4.26666;
}
static void batMoveFly(DBloodActor* actor)

View file

@ -244,7 +244,7 @@ static void eelMoveDodgeDown(DBloodActor* actor)
t2 -= FixedToFloat(pDudeInfo->sideSpeed);
});
actor->vel.Z = FixedToFloat(0x44444);
actor->vel.Z = 4.26666;
}
static void eelThinkChase(DBloodActor* actor)

View file

@ -308,7 +308,7 @@ static void gargMoveDodgeDown(DBloodActor* actor)
t2 -= FixedToFloat(pDudeInfo->sideSpeed);
});
actor->vel.Z = FixedToFloat(0x44444);
actor->vel.Z = 4.26666;
}
static void gargThinkChase(DBloodActor* actor)
@ -559,7 +559,7 @@ static void gargMoveSlow(DBloodActor* actor)
switch (actor->spr.type) {
case kDudeGargoyleFlesh:
actor->vel.Z = FixedToFloat(0x44444);
actor->vel.Z = 4.26666;
break;
case kDudeGargoyleStone:
actor->vel.Z = FixedToFloat(0x35555);

View file

@ -286,7 +286,7 @@ static void ghostMoveDodgeDown(DBloodActor* actor)
else
t2 -= FixedToFloat(pDudeInfo->sideSpeed);
});
actor->vel.Z = FixedToFloat(0x44444);
actor->vel.Z = 4.26666;
}
static void ghostThinkChase(DBloodActor* actor)
@ -452,7 +452,7 @@ static void ghostMoveSlow(DBloodActor* actor)
});
switch (actor->spr.type) {
case kDudePhantasm:
actor->vel.Z = FixedToFloat(0x44444);
actor->vel.Z = 4.26666;
break;
}
}