mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-17 07:07:10 +00:00
really return verb name
svn-id: r11012
This commit is contained in:
parent
4db6235db7
commit
4c7b847950
@ -126,13 +126,20 @@ public:
|
||||
return _verb == VERB_NONE;
|
||||
}
|
||||
|
||||
int inventoryItem() const {
|
||||
if (isInventory()) {
|
||||
return _verb - VERB_INV_FIRST;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
VerbEnum value() const {
|
||||
return _verb;
|
||||
}
|
||||
|
||||
const char* name() const {
|
||||
if (_verb > 0 && _verb < 13) {
|
||||
_verbName[_verb];
|
||||
return _verbName[_verb];
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user