mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-06 14:04:08 +00:00
Remove unneeded double to float casts
This commit is contained in:
parent
8f01eab5ab
commit
c88c2115e2
6 changed files with 341 additions and 341 deletions
|
@ -60,7 +60,7 @@ void CBridge::Update()
|
|||
if (timeElapsed < 10000)
|
||||
{
|
||||
State = STATE_LIFT_PART_MOVING_DOWN;
|
||||
liftHeight = 25.0 - timeElapsed / 10000.0 * 25.0f;
|
||||
liftHeight = 25.0f - timeElapsed / 10000.0f * 25.0f;
|
||||
}
|
||||
else if (timeElapsed < 40000)
|
||||
{
|
||||
|
@ -75,7 +75,7 @@ void CBridge::Update()
|
|||
else if (timeElapsed < 60000)
|
||||
{
|
||||
State = STATE_LIFT_PART_MOVING_UP;
|
||||
liftHeight = (timeElapsed - 50000) / 10000.0 * 25.0f;
|
||||
liftHeight = (timeElapsed - 50000) / 10000.0f * 25.0f;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -151,4 +151,4 @@ STARTPATCHES
|
|||
InjectHook(0x413D10, &CBridge::ShouldLightsBeFlashing, PATCH_JUMP);
|
||||
InjectHook(0x413D20, &CBridge::FindBridgeEntities, PATCH_JUMP);
|
||||
InjectHook(0x413DE0, &CBridge::ThisIsABridgeObjectMovingUp, PATCH_JUMP);
|
||||
ENDPATCHES
|
||||
ENDPATCHES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue