From eef9f7b57b493cfb7712fd47cb961d16e8ce878d Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 9 Oct 2010 11:11:26 +0000 Subject: TOON: Ran astyle over the toon engine (+ some manual corrections). svn-id: r53098 --- engines/toon/path.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'engines/toon/path.cpp') diff --git a/engines/toon/path.cpp b/engines/toon/path.cpp index bbd6a7bf2f..be0358f588 100644 --- a/engines/toon/path.cpp +++ b/engines/toon/path.cpp @@ -144,8 +144,7 @@ bool PathFinding::isWalkable(int32 x, int32 y) { if (_blockingRects[i][4] == 0) { if (x >= _blockingRects[i][0] && x <= _blockingRects[i][2] && y >= _blockingRects[i][1] && y < _blockingRects[i][3]) return false; - } - else { + } else { int32 dx = abs(_blockingRects[i][0] - x); int32 dy = abs(_blockingRects[i][1] - y); if ((dx << 8) / _blockingRects[i][2] < (1 << 8) && (dy << 8) / _blockingRects[i][3] < (1 << 8)) { @@ -200,7 +199,7 @@ int PathFinding::findPath(int32 x, int32 y, int32 destx, int32 desty) { _gridPathCount = 0; return true; } - + memset(_gridTemp , 0, _width * _height * sizeof(int32)); _heap->clear(); int32 curX = x; -- cgit v1.2.3