diff options
author | Paul Gilbert | 2014-04-03 22:02:12 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-04-03 22:02:12 -0400 |
commit | d163ee088a9f3e49463fddd05a41d1b1530e77db (patch) | |
tree | 9d8612506d79664944c012a743b3122e7fdcad49 /engines/mads/inventory.cpp | |
parent | 83ac9489231e164154ad812034eb6aac9a0fe78b (diff) | |
download | scummvm-rg350-d163ee088a9f3e49463fddd05a41d1b1530e77db.tar.gz scummvm-rg350-d163ee088a9f3e49463fddd05a41d1b1530e77db.tar.bz2 scummvm-rg350-d163ee088a9f3e49463fddd05a41d1b1530e77db.zip |
MADS: Renamings for saving fields in MADSAction::startAction
Diffstat (limited to 'engines/mads/inventory.cpp')
-rw-r--r-- | engines/mads/inventory.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/mads/inventory.cpp b/engines/mads/inventory.cpp index a8e50e6ae1..43b7b6ea28 100644 --- a/engines/mads/inventory.cpp +++ b/engines/mads/inventory.cpp @@ -116,7 +116,8 @@ void InventoryObjects::addToInventory(int objectId) { (*this)[objectId]._roomNumber = PLAYER_INVENTORY; - if (_vm->_game->_kernelMode == KERNEL_ACTIVE_CODE && !_vm->_game->_screenObjects._v832EC) { + if (_vm->_game->_kernelMode == KERNEL_ACTIVE_CODE && + _vm->_game->_screenObjects._inputMode == kInputBuildingSentences) { userInterface.categoryChanged(); userInterface.selectObject(userInterface._selectedInvIndex); } @@ -137,7 +138,8 @@ void InventoryObjects::removeFromInventory(int objectId, int newScene) { int selectedIndex = userInterface._selectedInvIndex; bool noSelection = selectedIndex < 0; - if (_vm->_game->_kernelMode == KERNEL_ACTIVE_CODE && !_vm->_game->_screenObjects._v832EC) + if (_vm->_game->_kernelMode == KERNEL_ACTIVE_CODE && + _vm->_game->_screenObjects._inputMode == kInputBuildingSentences) userInterface.selectObject(-1); // Remove the item from the inventory list @@ -158,7 +160,8 @@ void InventoryObjects::removeFromInventory(int objectId, int newScene) { newIndex = 0; } - if (_vm->_game->_kernelMode == KERNEL_ACTIVE_CODE && !_vm->_game->_screenObjects._v832EC) { + if (_vm->_game->_kernelMode == KERNEL_ACTIVE_CODE && + _vm->_game->_screenObjects._inputMode == kInputBuildingSentences) { userInterface.categoryChanged(); userInterface.selectObject(newIndex); } |