diff options
| author | Strangerke | 2014-02-28 23:33:39 +0100 |
|---|---|---|
| committer | Strangerke | 2014-02-28 23:33:39 +0100 |
| commit | 460645393e7333427f67d0a567edbd60d9b69b7b (patch) | |
| tree | 5320f2f2921a457c4e123bfa30c4059f9869897c /engines/toon | |
| parent | a8e17552ce9ec9174132ee658fc69f12af53b60d (diff) | |
| download | scummvm-rg350-460645393e7333427f67d0a567edbd60d9b69b7b.tar.gz scummvm-rg350-460645393e7333427f67d0a567edbd60d9b69b7b.tar.bz2 scummvm-rg350-460645393e7333427f67d0a567edbd60d9b69b7b.zip | |
TOON: Reduce the scope of a couple of variables.
Diffstat (limited to 'engines/toon')
| -rw-r--r-- | engines/toon/picture.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/toon/picture.cpp b/engines/toon/picture.cpp index f0a7154788..51077c0b17 100644 --- a/engines/toon/picture.cpp +++ b/engines/toon/picture.cpp @@ -268,15 +268,14 @@ void Picture::floodFillNotWalkableOnMask(int16 x, int16 y) { // Stack-based floodFill algorithm based on // http://student.kuleuven.be/~m0216922/CG/files/floodfill.cpp Common::Stack<Common::Point> stack; - bool spanLeft, spanRight; stack.push(Common::Point(x, y)); while (!stack.empty()) { Common::Point pt = stack.pop(); while (_data[pt.x + pt.y * _width] & 0x1F && pt.y >= 0) pt.y--; pt.y++; - spanLeft = false; - spanRight = false; + bool spanLeft = false; + bool spanRight = false; while (_data[pt.x + pt.y * _width] & 0x1F && pt.y < _height) { _data[pt.x + pt.y * _width] &= 0xE0; if (!spanLeft && pt.x > 0 && _data[pt.x - 1 + pt.y * _width] & 0x1F) { |
