diff options
author | Paul Gilbert | 2017-08-20 22:55:40 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-08-20 22:55:40 -0400 |
commit | 2edd59d0b8e48d354e085beacbe4f2c4a1e16489 (patch) | |
tree | 6e73b3bd62f31d47c3963e37fe741aabc61a7c7d /engines | |
parent | ca05dffec507de3a614e41c68310e08827db86f4 (diff) | |
download | scummvm-rg350-2edd59d0b8e48d354e085beacbe4f2c4a1e16489.tar.gz scummvm-rg350-2edd59d0b8e48d354e085beacbe4f2c4a1e16489.tar.bz2 scummvm-rg350-2edd59d0b8e48d354e085beacbe4f2c4a1e16489.zip |
TITANIC: Fix Tab key toggle for Starfield/Photo being broken
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/pet_control/pet_control.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/titanic/pet_control/pet_control.cpp b/engines/titanic/pet_control/pet_control.cpp index fd77f44117..73f6df58a0 100644 --- a/engines/titanic/pet_control/pet_control.cpp +++ b/engines/titanic/pet_control/pet_control.cpp @@ -336,8 +336,10 @@ bool CPetControl::KeyCharMsg(CKeyCharMsg *msg) { if (!result) { switch (msg->_key) { case Common::KEYCODE_TAB: - setArea(PET_INVENTORY); - result = true; + if (isAreaUnlocked()) { + setArea(PET_INVENTORY); + result = true; + } break; default: break; |