diff options
author | Paul Gilbert | 2018-03-15 20:52:36 -0400 |
---|---|---|
committer | Paul Gilbert | 2018-03-15 20:52:36 -0400 |
commit | 39640017e644ed28c8e397f7e2bd8dd6657d35f9 (patch) | |
tree | 3acf8240129c89832b86fcf51c386f6ddea5c564 /engines/xeen/item.h | |
parent | 5584e7ec3701928caaeff90ac3dbe99cb86a03bb (diff) | |
download | scummvm-rg350-39640017e644ed28c8e397f7e2bd8dd6657d35f9.tar.gz scummvm-rg350-39640017e644ed28c8e397f7e2bd8dd6657d35f9.tar.bz2 scummvm-rg350-39640017e644ed28c8e397f7e2bd8dd6657d35f9.zip |
XEEN: Don't needlessly show class profiency error dialogs when just viewing inventory
Diffstat (limited to 'engines/xeen/item.h')
-rw-r--r-- | engines/xeen/item.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/xeen/item.h b/engines/xeen/item.h index e927908d01..871bd1c919 100644 --- a/engines/xeen/item.h +++ b/engines/xeen/item.h @@ -117,8 +117,10 @@ public: /** * Return whether a given item passes class-based usage restrictions + * @param itemId Item Index + * @param suppressError If true, no dialog is shown if the item doesn't pass restrictions */ - bool passRestrictions(int itemId, bool showError) const; + bool passRestrictions(int itemId, bool suppressError = false) const; /** * Return the bare name of a given inventory item |