aboutsummaryrefslogtreecommitdiff
path: root/engines/adl
diff options
context:
space:
mode:
authorWalter van Niftrik2017-02-22 18:43:27 +0100
committerWalter van Niftrik2017-02-22 23:17:41 +0100
commit69ae262bf2001c35ad72263ce95177fd98b128e6 (patch)
tree2db27cecb54a8a287296dc69605ccf58fb0f6063 /engines/adl
parent15625c9b0cd14dc10835ad8535aaaca7c860b3f4 (diff)
downloadscummvm-rg350-69ae262bf2001c35ad72263ce95177fd98b128e6.tar.gz
scummvm-rg350-69ae262bf2001c35ad72263ce95177fd98b128e6.tar.bz2
scummvm-rg350-69ae262bf2001c35ad72263ce95177fd98b128e6.zip
ADL: Add comments to hires6 direction opcode
Diffstat (limited to 'engines/adl')
-rw-r--r--engines/adl/hires6.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/adl/hires6.cpp b/engines/adl/hires6.cpp
index b3b66f6873..42860badbe 100644
--- a/engines/adl/hires6.cpp
+++ b/engines/adl/hires6.cpp
@@ -167,6 +167,7 @@ int HiRes6Engine::o_goDirection(ScriptEnv &e) {
byte room = getCurRoom().connections[D];
if (room == 0) {
+ // Don't penalize invalid directions at escapable Garthim encounter
if (getVar(33) == 2)
setVar(34, getVar(34) + 1);
@@ -176,6 +177,7 @@ int HiRes6Engine::o_goDirection(ScriptEnv &e) {
switchRoom(room);
+ // Escapes an escapable Garthim encounter by going to a different room
if (getVar(33) == 2) {
printMessage(102);
setVar(33, 0);