aboutsummaryrefslogtreecommitdiff
path: root/sword2/sword2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sword2/sword2.cpp')
-rw-r--r--sword2/sword2.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp
index 8894c289ec..dc3c96ad26 100644
--- a/sword2/sword2.cpp
+++ b/sword2/sword2.cpp
@@ -18,11 +18,15 @@
*/
#include "common/stdafx.h"
+
#include "backends/fs/fs.h"
+
#include "base/gameDetector.h"
#include "base/plugins.h"
+
#include "common/config-manager.h"
#include "common/file.h"
+#include "common/system.h"
#include "sword2/sword2.h"
#include "sword2/console.h"
@@ -545,7 +549,7 @@ void Sword2Engine::startGame() {
// FIXME: Move this to some better place?
void Sword2Engine::sleepUntil(uint32 time) {
- while (_system->getMillis() < time) {
+ while (getMillis() < time) {
// Make sure menu animations and fades don't suffer, but don't
// redraw the entire scene.
_graphics->processMenu();
@@ -612,4 +616,8 @@ void Sword2Engine::unpauseGame() {
setMouse(NORMAL_MOUSE_ID);
}
+uint32 Sword2Engine::getMillis() {
+ return _system->getMillis();
+}
+
} // End of namespace Sword2