summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Mfd.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-08 23:31:50 +0100
committerAki <please@ignore.pl>2022-03-08 23:31:50 +0100
commit861995c88ef312beb4bc1b7920d612bd52590303 (patch)
treeddd14c9ee676bc363b313a946fc3c24da02f8748 /Stars45/Mfd.cpp
parente472d9537ee7919630e5f6039f8425b06f6c4213 (diff)
downloadstarshatter-861995c88ef312beb4bc1b7920d612bd52590303.zip
starshatter-861995c88ef312beb4bc1b7920d612bd52590303.tar.gz
starshatter-861995c88ef312beb4bc1b7920d612bd52590303.tar.bz2
Removed legacy functions that acted as wrappers for time compression
Diffstat (limited to 'Stars45/Mfd.cpp')
-rw-r--r--Stars45/Mfd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Stars45/Mfd.cpp b/Stars45/Mfd.cpp
index 37aece0..58a5a4d 100644
--- a/Stars45/Mfd.cpp
+++ b/Stars45/Mfd.cpp
@@ -1118,8 +1118,8 @@ MFD::DrawGameMFD()
seconds = (clock / 1000) % 60;
}
- if (Game::GetInstance()->TimeCompression() > 1)
- sprintf_s(txt, "%02d:%02d:%02d x%d", hours, minutes, seconds, Game::GetInstance()->TimeCompression()); //-V576
+ if (static_cast<int>(Game::GetInstance()->GetClock()->TimeCompression()) != 1)
+ sprintf_s(txt, "%02d:%02d:%02d x%.1f", hours, minutes, seconds, Game::GetInstance()->GetClock()->TimeCompression()); //-V576
else
sprintf_s(txt, "%02d:%02d:%02d", hours, minutes, seconds);