aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/core/game_object.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-07-02 22:02:24 -0400
committerPaul Gilbert2017-07-02 22:02:24 -0400
commitfbb4cb9b319e2fecc483fe579f2a38c86aeb65f7 (patch)
treef31ab72ff82c2de33c3378d714e66952d775e633 /engines/titanic/core/game_object.cpp
parentd5ebd9ae9249be09c0afb948394019bb5fc29796 (diff)
downloadscummvm-rg350-fbb4cb9b319e2fecc483fe579f2a38c86aeb65f7.tar.gz
scummvm-rg350-fbb4cb9b319e2fecc483fe579f2a38c86aeb65f7.tar.bz2
scummvm-rg350-fbb4cb9b319e2fecc483fe579f2a38c86aeb65f7.zip
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
Diffstat (limited to 'engines/titanic/core/game_object.cpp')
-rw-r--r--engines/titanic/core/game_object.cpp12
1 files changed, 12 insertions, 0 deletions
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)