diff options
| author | Eugene Sandulenko | 2018-06-20 14:39:09 +0200 |
|---|---|---|
| committer | Eugene Sandulenko | 2018-06-28 23:51:32 +0200 |
| commit | 85e0c7ccd330b8e59faa7d63a439ddd21c598d6f (patch) | |
| tree | ed8b5b1e16e15dcf6e5dda4f418a1b871b4b4d6f /engines/pink/objects/actors | |
| parent | 9c176c57023cc77c82a73e533e4ace59d2529f8d (diff) | |
| download | scummvm-rg350-85e0c7ccd330b8e59faa7d63a439ddd21c598d6f.tar.gz scummvm-rg350-85e0c7ccd330b8e59faa7d63a439ddd21c598d6f.tar.bz2 scummvm-rg350-85e0c7ccd330b8e59faa7d63a439ddd21c598d6f.zip | |
PINK: JANITORIAL: Indentation fixes
Diffstat (limited to 'engines/pink/objects/actors')
| -rw-r--r-- | engines/pink/objects/actors/lead_actor.cpp | 54 |
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 |
