aboutsummaryrefslogtreecommitdiff
path: root/engines/access/amazon/amazon_logic.cpp
diff options
context:
space:
mode:
authorStrangerke2014-12-07 19:53:19 +0100
committerPaul Gilbert2014-12-12 23:02:41 -0500
commit3cf08939797c1963264cf1ef49ed227fba3daf00 (patch)
treec12470920b4100ab231eaf3988899f60a0505469 /engines/access/amazon/amazon_logic.cpp
parentb864b846356b6b20d6e6def414456b5d44fe88c7 (diff)
downloadscummvm-rg350-3cf08939797c1963264cf1ef49ed227fba3daf00.tar.gz
scummvm-rg350-3cf08939797c1963264cf1ef49ed227fba3daf00.tar.bz2
scummvm-rg350-3cf08939797c1963264cf1ef49ed227fba3daf00.zip
ACCESS: Add a cheat mode which currently skips the guard in chapter 8
Diffstat (limited to 'engines/access/amazon/amazon_logic.cpp')
-rw-r--r--engines/access/amazon/amazon_logic.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/access/amazon/amazon_logic.cpp b/engines/access/amazon/amazon_logic.cpp
index c9e8886d08..c1df5353a2 100644
--- a/engines/access/amazon/amazon_logic.cpp
+++ b/engines/access/amazon/amazon_logic.cpp
@@ -1168,6 +1168,11 @@ void Guard::setGuardFrame() {
}
void Guard::doGuard() {
+ // Skip the code dealing with the guard on the boat (chapter 8)
+ // if the cheat mode is activated
+ if (_vm->_cheatFl)
+ return;
+
if (_vm->_timers[8]._flag) {
setGuardFrame();
return;