aboutsummaryrefslogtreecommitdiff
path: root/sword2/sword2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sword2/sword2.cpp')
-rw-r--r--sword2/sword2.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/sword2/sword2.cpp b/sword2/sword2.cpp
index cf11daa697..214ffbbcf1 100644
--- a/sword2/sword2.cpp
+++ b/sword2/sword2.cpp
@@ -462,6 +462,20 @@ void Sword2Engine::Start_game(void) {
debug(5, "Start_game() DONE.");
}
+// FIXME: Move this to some better place?
+
+void sleepUntil(int32 time) {
+ while ((int32) SVM_timeGetTime() < time) {
+ g_sword2->parseEvents();
+
+ // Make sure menu animations and fades don't suffer
+ ProcessMenu();
+ ServiceWindows();
+
+ g_system->delay_msecs(10);
+ }
+}
+
void PauseGame(void) {
// uint8 *text;