Skip to content

Commit

Permalink
TUCKER: Fix bug #6381 - "TUCKER: In 3rd part, "Use Peg" fails..."
Browse files Browse the repository at this point in the history
"Use Peg" is a single-item action and these are hardcoded in the
engine. The default otherwise is dual-item action "Use X on Y".
  • Loading branch information
dergunov authored and digitall committed Feb 10, 2014
1 parent 3f6d71d commit 3a5554f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/tucker/tucker.cpp
Expand Up @@ -3682,7 +3682,8 @@ void TuckerEngine::setActionForInventoryObject() {
_actionRequiresTwoObjects = false;
return;
}
if ((_partNum == 3 && (_actionObj1Num == 6 || _actionObj1Num == 3 || _actionObj1Num == 17)) ||
// Items with unary usage i.e. "Use X", rather than "Use X on Y"
if ((_partNum == 3 && (_actionObj1Num == 6 || _actionObj1Num == 3 || _actionObj1Num == 17 || _actionObj1Num == 33)) ||
(_partNum == 2 && _actionObj1Num == 19) ||
(_partNum == 3 && (_actionObj1Num == 42 && _selectedObjectNum == 18)) ) {
_actionVerbLocked = 0;
Expand Down

0 comments on commit 3a5554f

Please sign in to comment.