summaryrefslogtreecommitdiffhomepage
path: root/Stars45/QuitView.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/QuitView.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/QuitView.cpp')
-rw-r--r--Stars45/QuitView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Stars45/QuitView.cpp b/Stars45/QuitView.cpp
index 7cf6fe4..bc0b348 100644
--- a/Stars45/QuitView.cpp
+++ b/Stars45/QuitView.cpp
@@ -163,7 +163,7 @@ QuitView::ExecFrame()
// exit and accept:
if (action == 1) {
CloseMenu();
- Game::GetInstance()->SetTimeCompression(1);
+ Game::GetInstance()->GetClock()->SetTimeCompression(1.0);
Starshatter* stars = Starshatter::GetInstance();
stars->SetGameMode(Starshatter::PLAN_MODE);
@@ -172,7 +172,7 @@ QuitView::ExecFrame()
// quit and discard results:
else if (action == 2) {
CloseMenu();
- Game::GetInstance()->SetTimeCompression(1);
+ Game::GetInstance()->GetClock()->SetTimeCompression(1.0);
Starshatter* stars = Starshatter::GetInstance();
Campaign* campaign = Campaign::GetCampaign();