diff options
author | Ľubomír Remák | 2018-03-11 00:46:44 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-25 23:12:01 +0200 |
commit | ae979a831091e04797f19d0c80210d745cd60f62 (patch) | |
tree | 988ab239c438bca49b1585ff2befc5a4aba64bb5 /engines/mutationofjb/inventory.cpp | |
parent | fa9c8be1292e1f0174454193807f39b5c3ee52bf (diff) | |
download | scummvm-rg350-ae979a831091e04797f19d0c80210d745cd60f62.tar.gz scummvm-rg350-ae979a831091e04797f19d0c80210d745cd60f62.tar.bz2 scummvm-rg350-ae979a831091e04797f19d0c80210d745cd60f62.zip |
MUTATIONOFJB: Add support for IFITEM command and fix parsing conditional commands that are right after #ELSE.
Diffstat (limited to 'engines/mutationofjb/inventory.cpp')
-rw-r--r-- | engines/mutationofjb/inventory.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/mutationofjb/inventory.cpp b/engines/mutationofjb/inventory.cpp index 8dcec8d9b5..4a46548ad2 100644 --- a/engines/mutationofjb/inventory.cpp +++ b/engines/mutationofjb/inventory.cpp @@ -32,6 +32,11 @@ const Inventory::Items &Inventory::getItems() const { return _items; } +bool Inventory::hasItem(const Common::String &item) const { + Items::const_iterator it = find(_items.begin(), _items.end(), item); + return (it != _items.end()); +} + void Inventory::addItem(const Common::String &item) { _items.push_back(item); |