diff options
author | Aki <please@ignore.pl> | 2022-03-23 22:57:42 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-23 22:57:42 +0100 |
commit | 6b2a17a2ccb1a0d45489208f7f23b9d6a65b110d (patch) | |
tree | 0c0c86871cdd51462617a946a9f35fe3501bd6a7 /Stars45/Player.cpp | |
parent | 9f9f2456d5ee0091bf171fae3ad321f82e5f2ca4 (diff) | |
download | starshatter-6b2a17a2ccb1a0d45489208f7f23b9d6a65b110d.zip starshatter-6b2a17a2ccb1a0d45489208f7f23b9d6a65b110d.tar.gz starshatter-6b2a17a2ccb1a0d45489208f7f23b9d6a65b110d.tar.bz2 |
Removed Clock from Game for now
While testing waters around exporting things out from Game to
GameWinDX9 I noticed that if both ContentBundle and Clock (primarily)
are removed from it, then the WinDX9 will be almost equivalent to base.
This is worrying mainly because I'm only fortified in seeing deep
relationships between various classes sadly including Video.
Diffstat (limited to 'Stars45/Player.cpp')
-rw-r--r-- | Stars45/Player.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Stars45/Player.cpp b/Stars45/Player.cpp index e4944e6..8639187 100644 --- a/Stars45/Player.cpp +++ b/Stars45/Player.cpp @@ -29,7 +29,7 @@ #include "ParseUtil.h" #include "FormatUtil.h" #include "Bitmap.h" -#include "Game.h" +#include "Clock.h" #include "ContentBundle.h" // +-------------------------------------------------------------------+ @@ -641,7 +641,7 @@ Player::GetMissionPoints(ShipStats* s, DWORD start_time) if (s) { result = s->GetPoints(); - int flight_time = (Game::GetInstance()->GetClock()->GameTime() - start_time) / 1000; + int flight_time = (Clock::GetInstance()->GameTime() - start_time) / 1000; // if player survived mission, award one experience point // for each minute of action, in ten point blocks: @@ -682,7 +682,7 @@ Player::ProcessStats(ShipStats* s, DWORD start_time) AddLosses(s->GetDeaths()); AddLosses(s->GetColls()); AddMissions(1); - AddFlightTime((Game::GetInstance()->GetClock()->GameTime() - start_time) / 1000); + AddFlightTime((Clock::GetInstance()->GameTime() - start_time) / 1000); int rank = Rank(); |