Skip to content

Commit

Permalink
TITANIC: Fix ship crashing multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Sep 2, 2016
1 parent c6dd30c commit 6c1e812
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion engines/titanic/core/game_object.cpp
Expand Up @@ -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 {
Expand Down

0 comments on commit 6c1e812

Please sign in to comment.