mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
TITANIC: Fix ship crashing multiple times
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user