Skip to content

Commit

Permalink
SHERLOCK: Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Apr 24, 2015
1 parent 5e1588e commit 6eb51c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions engines/sherlock/objects.cpp
Expand Up @@ -309,10 +309,10 @@ void Sprite::checkSprite() {
if (_delta.x > 0)
// Go to right side
walkPos.x = objBounds.right + CLEAR_DIST_X;
else if (_delta.x < 0)
else if (_delta.x < 0) {
// Go to left side
walkPos.x = objBounds.left - CLEAR_DIST_X;
else {
} else {
// Going straight up or down. So choose best side
if (spritePt.x >= (objBounds.left + objBounds.width() / 2))
walkPos.x = objBounds.right + CLEAR_DIST_X;
Expand Down
6 changes: 2 additions & 4 deletions engines/sherlock/talk.cpp
Expand Up @@ -1041,8 +1041,7 @@ void Talk::doScript(const Common::String &script) {
pullSequence();
pushSequence(_speaker);
setSequence(_speaker);
}
else {
} else {
setSequence(_speaker);
}

Expand Down Expand Up @@ -1071,8 +1070,7 @@ void Talk::doScript(const Common::String &script) {
// Remove portrait?
if (str[0] == REMOVE_PORTRAIT) {
_speaker = 255;
}
else {
} else {
// Nope, so set the first speaker
people.setTalking(_speaker);
}
Expand Down
3 changes: 1 addition & 2 deletions engines/sherlock/user_interface.cpp
Expand Up @@ -1468,8 +1468,7 @@ void UserInterface::doLookControl() {
_menuMode = STD_MODE;
events.clearEvents();
}
}
else {
} else {
// Looking at an inventory object
// Backup the user interface
Surface tempSurface(SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT - CONTROLS_Y1);
Expand Down

0 comments on commit 6eb51c3

Please sign in to comment.