SHERLOCK: RT: Add missing verb filter for actions starting with '*'

This fixes '*Solve' appearing as an option in the right click
menu for the Foolscap before you pick it up
This commit is contained in:
Paul Gilbert 2015-08-22 21:51:28 -04:00
parent c6633404c9
commit c87a73f9fd

View File

@ -90,10 +90,10 @@ void WidgetVerbs::load(bool objectsOn) {
// Add any extra active verbs from the object's verb list
for (int idx = 0; idx < 6; ++idx) {
if (!ui._bgShape->_use[idx]._verb.empty() && !ui._bgShape->_use[idx]._verb.hasPrefix(" ") &&
(ui._bgShape->_use[idx]._target.empty() || ui._bgShape->_use[idx]._target.hasPrefix("*") ||
ui._bgShape->_use[idx]._target.hasPrefix(" "))) {
_verbCommands.push_back(ui._bgShape->_use[idx]._verb);
UseType &use = ui._bgShape->_use[idx];
if (!use._verb.empty() && !use._verb.hasPrefix(" ") && !use._verb.hasPrefix("*") &&
(use._target.empty() || use._target.hasPrefix("*") || use._target.hasPrefix(" "))) {
_verbCommands.push_back(use._verb);
}
}
}