TRECISION: Simplify doMouseInventory()

This commit is contained in:
Filippos Karapetis
2021-05-29 21:24:14 +01:00
committed by SupSuper
parent baf34e1fa4
commit 3bfb6d0ea4
+2 -5
View File
@@ -3835,12 +3835,9 @@ void LogicManager::doMouseGame() {
doEvent(MC_INVENTORY, ME_CLOSE, MP_DEFAULT, 0, 0, 0, 0);
}
// Returns true when it's in a room without a character, such as the map
bool LogicManager::doMouseInventory() {
bool retVal = false;
// Inventory area
if (!_vm->_flagCharacterExists && ((_vm->_curRoom != kRoom31P) && (_vm->_curRoom != kRoom35P)))
retVal = true; // When it's in a room without a character, such as the map
return retVal;
return !_vm->_flagCharacterExists && _vm->_curRoom != kRoom31P && _vm->_curRoom != kRoom35P;
}
void LogicManager::doMouseLeftRight() {