From 560af833007cd3583ceae51b58cf015390ad14ce Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Sat, 20 Aug 2016 20:59:15 -0500 Subject: SCI: Move SciEngine::sleep to correct source file --- engines/sci/event.cpp | 21 --------------------- engines/sci/sci.cpp | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 21 deletions(-) (limited to 'engines') diff --git a/engines/sci/event.cpp b/engines/sci/event.cpp index 550cd46d48..43db00c566 100644 --- a/engines/sci/event.cpp +++ b/engines/sci/event.cpp @@ -402,25 +402,4 @@ SciEvent EventManager::getSciEvent(uint32 mask) { return event; } - -void SciEngine::sleep(uint32 msecs) { - uint32 time; - const uint32 wakeUpTime = g_system->getMillis() + msecs; - - while (true) { - // let backend process events and update the screen - _eventMan->getSciEvent(SCI_EVENT_PEEK); - time = g_system->getMillis(); - if (time + 10 < wakeUpTime) { - g_system->delayMillis(10); - } else { - if (time < wakeUpTime) - g_system->delayMillis(wakeUpTime - time); - break; - } - - } -} - - } // End of namespace Sci diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 86c0cffe15..8e330f274b 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -955,6 +955,25 @@ int SciEngine::inQfGImportRoom() const { return 0; } +void SciEngine::sleep(uint32 msecs) { + uint32 time; + const uint32 wakeUpTime = g_system->getMillis() + msecs; + + for (;;) { + // let backend process events and update the screen + _eventMan->getSciEvent(SCI_EVENT_PEEK); + time = g_system->getMillis(); + if (time + 10 < wakeUpTime) { + g_system->delayMillis(10); + } else { + if (time < wakeUpTime) + g_system->delayMillis(wakeUpTime - time); + break; + } + + } +} + void SciEngine::setLauncherLanguage() { if (_gameDescription->flags & ADGF_ADDENGLISH) { // If game is multilingual -- cgit v1.2.3