aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actors/lead_actor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/pink/objects/actors/lead_actor.cpp')
-rw-r--r--engines/pink/objects/actors/lead_actor.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/engines/pink/objects/actors/lead_actor.cpp b/engines/pink/objects/actors/lead_actor.cpp
index 847aa00ed2..549a8f265e 100644
--- a/engines/pink/objects/actors/lead_actor.cpp
+++ b/engines/pink/objects/actors/lead_actor.cpp
@@ -471,32 +471,32 @@ void PubPink::updateCursor(const Common::Point point) {
}
bool PubPink::sendUseClickMessage(Actor *actor) {
- if (!LeadActor::sendUseClickMessage(actor) && playingMiniGame()) {
- _nextState = _state;
- _state = kPlayingSequence;
-
- const char *roundName;
- switch (_round++ % 3) {
- case 0:
- roundName = kFirstRound;
- break;
- case 1:
- roundName = kSecondRound;
- break;
- case 2:
- roundName = kThirdRound;
- break;
- default:
- roundName = nullptr;
- assert(0);
- }
- _sequencer->authorSequence(_sequencer->findSequence(roundName), 0);
- }
-
- if (playingMiniGame())
- _isHaveItem = true;
-
- return true;
+ if (!LeadActor::sendUseClickMessage(actor) && playingMiniGame()) {
+ _nextState = _state;
+ _state = kPlayingSequence;
+
+ const char *roundName;
+ switch (_round++ % 3) {
+ case 0:
+ roundName = kFirstRound;
+ break;
+ case 1:
+ roundName = kSecondRound;
+ break;
+ case 2:
+ roundName = kThirdRound;
+ break;
+ default:
+ roundName = nullptr;
+ assert(0);
+ }
+ _sequencer->authorSequence(_sequencer->findSequence(roundName), 0);
+ }
+
+ if (playingMiniGame())
+ _isHaveItem = true;
+
+ return true;
}
WalkLocation *PubPink::getWalkDestination() {
@@ -511,7 +511,7 @@ WalkLocation *PubPink::getWalkDestination() {
bool PubPink::playingMiniGame() {
return !(_page->checkValueOfVariable(kFoodPuzzle, "TRUE") ||
- _page->checkValueOfVariable(kFoodPuzzle, "UNDEFINED"));
+ _page->checkValueOfVariable(kFoodPuzzle, "UNDEFINED"));
}
} // End of namespace Pink