Skip to content

Commit e3c08bd

Browse files
committed
Change floats to use a floating point literal suffix
1 parent ae2fa65 commit e3c08bd

File tree

3 files changed

+100
-100
lines changed

3 files changed

+100
-100
lines changed

ttyd-tools/rel/source/codes.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ void setTimeStopTextStorage()
368368
void speedUpMario()
369369
{
370370
ttyd::mario::Player *player = ttyd::mario::marioGetPtr();
371-
float SpeedValueToSet = 16;
371+
float SpeedValueToSet = 16.f;
372372

373373
float current_unk_184 = SpeedUpMario.MarioVar[0];
374374
float current_unk_188 = SpeedUpMario.MarioVar[1];
@@ -820,12 +820,12 @@ void spawnItem()
820820
if (player->wPlayerDirection <= 0)
821821
{
822822
// Mario is facing left
823-
CoordinateXAdjustment = -30;
823+
CoordinateXAdjustment = -30.f;
824824
}
825825
else
826826
{
827827
// Mario is facing right
828-
CoordinateXAdjustment = 30;
828+
CoordinateXAdjustment = 30.f;
829829
}
830830

831831
float ItemCoordinateX = player->playerPosition[0] + CoordinateXAdjustment;

0 commit comments

Comments
 (0)