aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/titanic/core/game_object.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp
index 53ad5de941..7848734792 100644
--- a/engines/titanic/core/game_object.cpp
+++ b/engines/titanic/core/game_object.cpp
@@ -898,7 +898,12 @@ CString CGameObject::getViewFullName() const {
}
void CGameObject::sleep(uint milli) {
- g_vm->_events->sleep(milli);
+ // Use an empty event target so that standard scene drawing won't happen
+ Events &events = *g_vm->_events;
+ CEventTarget nullTarget;
+ events.addTarget(&nullTarget);
+ events.sleep(milli);
+ events.removeTarget();
}
Point CGameObject::getMousePos() const {