diff options
Diffstat (limited to 'engines/dm/objectman.cpp')
| -rw-r--r-- | engines/dm/objectman.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/dm/objectman.cpp b/engines/dm/objectman.cpp index 0f04fb4c96..aed1c13a1d 100644 --- a/engines/dm/objectman.cpp +++ b/engines/dm/objectman.cpp @@ -230,7 +230,7 @@ void ObjectMan::drawIconInSlotBox(uint16 slotBoxIndex, int16 iconIndex) { box, kColorNoTransparency, gDefultViewPort); } } - + #define kObjectNameMaximumLength 14 // @ C014_OBJECT_NAME_MAXIMUM_LENGTH void ObjectMan::drawLeaderObjectName(Thing thing) { @@ -247,4 +247,8 @@ void ObjectMan::drawLeaderObjectName(Thing thing) { } _vm->_textMan->printWithTrailingSpacesToScreen(233, 37, kColorCyan, kColorBlack, objName, kObjectNameMaximumLength); } + +IconIndice ObjectMan::getIconIndexInSlotBox(uint16 slotBoxIndex) { + return (IconIndice)_slotBoxes[slotBoxIndex]._iconIndex; +} } |
