aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/timeline.cpp
diff options
context:
space:
mode:
authorStrangerke2016-09-26 21:12:51 +0200
committerStrangerke2016-09-26 21:15:04 +0200
commitdc19419507240ba42650e671b4e379578f571d53 (patch)
treef9276bcaeab6dec6dd3ceeaf372f435efdbefde5 /engines/dm/timeline.cpp
parent53790e749725f92d43f1a09b342203eb5022c2fc (diff)
downloadscummvm-rg350-dc19419507240ba42650e671b4e379578f571d53.tar.gz
scummvm-rg350-dc19419507240ba42650e671b4e379578f571d53.tar.bz2
scummvm-rg350-dc19419507240ba42650e671b4e379578f571d53.zip
DM: reduce some more redirections
Diffstat (limited to 'engines/dm/timeline.cpp')
-rw-r--r--engines/dm/timeline.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/dm/timeline.cpp b/engines/dm/timeline.cpp
index 97d590f4c3..c6a77ece46 100644
--- a/engines/dm/timeline.cpp
+++ b/engines/dm/timeline.cpp
@@ -868,14 +868,15 @@ bool Timeline::hasWeaponMovedSlot(int16 champIndex, Champion *champ, uint16 sour
}
void Timeline::processEventHideDamageReceived(uint16 champIndex) {
+ InventoryMan &inventory = *_vm->_inventoryMan;
Champion *curChampion = &_vm->_championMan->_champions[champIndex];
curChampion->_hideDamageReceivedIndex = -1;
if (!curChampion->_currHealth)
return;
- if (_vm->indexToOrdinal(champIndex) == _vm->_inventoryMan->_inventoryChampionOrdinal) {
+ if (_vm->indexToOrdinal(champIndex) == inventory._inventoryChampionOrdinal) {
_vm->_eventMan->showMouse();
- _vm->_inventoryMan->drawStatusBoxPortrait((ChampionIndex)champIndex);
+ inventory.drawStatusBoxPortrait((ChampionIndex)champIndex);
_vm->_eventMan->hideMouse();
} else {
setFlag(curChampion->_attributes, kDMAttributeNameTitle);