PINK: fixed right button click when playing pub minigame

This commit is contained in:
Andrei Prykhodko 2020-06-04 15:14:27 +03:00
parent 9c4e624410
commit a0cdc82694
2 changed files with 8 additions and 1 deletions

View File

@ -499,4 +499,9 @@ bool PubPink::playingMiniGame() {
_page->checkValueOfVariable(kFoodPuzzle, kUndefinedValue));
}
void PubPink::onRightButtonClick(const Common::Point point) {
if (!playingMiniGame())
LeadActor::onRightButtonClick(point);
}
} // End of namespace Pink

View File

@ -71,7 +71,7 @@ public:
void onKeyboardButtonClick(Common::KeyCode code);
void onLeftButtonClick(const Common::Point point);
void onLeftButtonUp();
void onRightButtonClick(const Common::Point point);
virtual void onRightButtonClick(const Common::Point point);
void onMouseMove(const Common::Point point);
@ -140,6 +140,8 @@ class PubPink : public LeadActor {
public:
void toConsole() const override;
void onRightButtonClick(const Common::Point point) override;
void onLeftClickMessage() override;
void onVariableSet() override;