From fbb4cb9b319e2fecc483fe579f2a38c86aeb65f7 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 2 Jul 2017 22:02:24 -0400 Subject: TITANIC: Don't allow saving during the Doorbot prologue This works around a bug in the original where if you saved immediately after getting the PET, the savegame would put in in an invalid state --- engines/titanic/core/game_object.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'engines/titanic/core/game_object.cpp') diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp index 3286a6c7ee..3d9fede6c1 100644 --- a/engines/titanic/core/game_object.cpp +++ b/engines/titanic/core/game_object.cpp @@ -589,6 +589,18 @@ void CGameObject::petHide() { } } +void CGameObject::petIncAreaLocks() { + CPetControl *pet = getPetControl(); + if (pet) + pet->incAreaLocks(); +} + +void CGameObject::petDecAreaLocks() { + CPetControl *pet = getPetControl(); + if (pet) + pet->decAreaLocks(); +} + void CGameObject::petSetRemoteTarget() { CPetControl *pet = getPetControl(); if (pet) -- cgit v1.2.3