diff options
author | Aki <please@ignore.pl> | 2022-03-08 18:17:59 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-08 18:17:59 +0100 |
commit | b563a07d9fcaa58514eeb3ec78438db56ecf2e63 (patch) | |
tree | f048c6cbc09787e64572362cb7fe0e2f5f92cca0 /Stars45/ScrollWindow.cpp | |
parent | f725e598935860d15099a0310a3aef7197a58e9c (diff) | |
download | starshatter-b563a07d9fcaa58514eeb3ec78438db56ecf2e63.zip starshatter-b563a07d9fcaa58514eeb3ec78438db56ecf2e63.tar.gz starshatter-b563a07d9fcaa58514eeb3ec78438db56ecf2e63.tar.bz2 |
Replaced GetRealTime uses with Game->Clock equivalent
Diffstat (limited to 'Stars45/ScrollWindow.cpp')
-rw-r--r-- | Stars45/ScrollWindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Stars45/ScrollWindow.cpp b/Stars45/ScrollWindow.cpp index 8497dd6..0490da6 100644 --- a/Stars45/ScrollWindow.cpp +++ b/Stars45/ScrollWindow.cpp @@ -20,9 +20,8 @@ #include "Font.h" #include "Keyboard.h" #include "Mouse.h" - - -DWORD GetRealTime(); +#include "Game.h" +#include "Clock.h" // +--------------------------------------------------------------------+ @@ -553,9 +552,10 @@ int ScrollWindow::OnMouseWheel(int wheel) if (GetLineCount() > 0) { static double scroll_time = 0; + Clock* clock = Game::GetInstance()->GetClock(); - if (GetRealTime() - scroll_time > 0.5) { - scroll_time = GetRealTime(); + if (clock->RealTime() - scroll_time > 0.5) { + scroll_time = clock->RealTime(); Button::PlaySound(Button::SND_LIST_SCROLL); } } |