aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/actor_path.cpp2
-rw-r--r--engines/saga/actor_walk.cpp2
-rw-r--r--engines/saga/interface.cpp8
-rw-r--r--engines/saga/puzzle.cpp6
4 files changed, 9 insertions, 9 deletions
diff --git a/engines/saga/actor_path.cpp b/engines/saga/actor_path.cpp
index 6f1fc2f2d4..df117841f3 100644
--- a/engines/saga/actor_path.cpp
+++ b/engines/saga/actor_path.cpp
@@ -464,7 +464,7 @@ void Actor::removeNodes() {
// directly reached from the first node. If we find any, skip directly
// from the first node to that node (by marking all nodes in between as
// empty).
- for (i = _pathNodeList.size() - 2; i > 1 ; i--) {
+ for (i = _pathNodeList.size() - 2; i > 1; i--) {
if (_pathNodeList[i].point.x == PATH_NODE_EMPTY) {
continue;
}
diff --git a/engines/saga/actor_walk.cpp b/engines/saga/actor_walk.cpp
index 310bc3b26c..6aabf27311 100644
--- a/engines/saga/actor_walk.cpp
+++ b/engines/saga/actor_walk.cpp
@@ -992,7 +992,7 @@ bool Actor::actorWalkTo(uint16 actorId, const Location &toLocation) {
} else if (pointFrom.y > anotherActorScreenPosition.y) {
testBox.bottom = pointFrom.y - 1;
} else {
- testBox.top = pointFrom.y + 1 ;
+ testBox.top = pointFrom.y + 1;
}
}
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp
index 5b15fc9803..5a3b229c9d 100644
--- a/engines/saga/interface.cpp
+++ b/engines/saga/interface.cpp
@@ -2705,7 +2705,7 @@ void Interface::mapPanelShow() {
_vm->_gfx->getCurrentPal(_mapSavedPal);
- for (i = 0; i < 6 ; i++) {
+ for (i = 0; i < 6; i++) {
_vm->_gfx->palToBlack(_mapSavedPal, 0.2 * i);
_vm->_render->drawScene();
_vm->_system->delayMillis(5);
@@ -2728,7 +2728,7 @@ void Interface::mapPanelShow() {
_vm->_gfx->drawRegion(rect, image.getBuffer());
// Evil Evil
- for (i = 0; i < 6 ; i++) {
+ for (i = 0; i < 6; i++) {
_vm->_gfx->blackToPal(cPal, 0.2 * i);
_vm->_render->drawScene();
_vm->_system->delayMillis(5);
@@ -2746,7 +2746,7 @@ void Interface::mapPanelClean() {
_vm->_gfx->getCurrentPal(pal);
- for (i = 0; i < 6 ; i++) {
+ for (i = 0; i < 6; i++) {
_vm->_gfx->palToBlack(pal, 0.2 * i);
_vm->_render->drawScene();
_vm->_system->delayMillis(5);
@@ -2758,7 +2758,7 @@ void Interface::mapPanelClean() {
_vm->_gfx->showCursor(true);
_vm->_render->drawScene();
- for (i = 0; i < 6 ; i++) {
+ for (i = 0; i < 6; i++) {
_vm->_gfx->blackToPal(_mapSavedPal, 0.2 * i);
_vm->_render->drawScene();
_vm->_system->delayMillis(5);
diff --git a/engines/saga/puzzle.cpp b/engines/saga/puzzle.cpp
index af81c3c670..0e08c84e43 100644
--- a/engines/saga/puzzle.cpp
+++ b/engines/saga/puzzle.cpp
@@ -191,7 +191,7 @@ void Puzzle::showPieces() {
SpriteList *spriteList;
_vm->_actor->getSpriteParams(puzzle, frameNumber, spriteList);
- for (int j = PUZZLE_PIECES - 1 ; j >= 0; j--) {
+ for (int j = PUZZLE_PIECES - 1; j >= 0; j--) {
int num = _piecePriority[j];
if (_puzzlePiece != num) {
@@ -350,9 +350,9 @@ void Puzzle::dropPiece(Point mousePt) {
spI = &((*spriteList)[_puzzlePiece]);
if (newx + spI->width > boxw)
- newx = boxw - spI->width ;
+ newx = boxw - spI->width;
if (newy + spI->height > boxh)
- newy = boxh - spI->height ;
+ newy = boxh - spI->height;
int x1 = ((newx - PUZZLE_X_OFFSET) & ~7) + PUZZLE_X_OFFSET;
int y1 = ((newy - PUZZLE_Y_OFFSET) & ~7) + PUZZLE_Y_OFFSET;