diff options
author | Strangerke | 2015-11-23 00:27:42 +0100 |
---|---|---|
committer | Strangerke | 2015-11-23 00:28:17 +0100 |
commit | 767ce0ddc06ba1d499347f1bccc99d6892b87136 (patch) | |
tree | a84054b227d09833927d3574ead98d9083984cf8 /engines/mads | |
parent | a12516ee1890e9057b7ca521b7f94aafd0205ce1 (diff) | |
download | scummvm-rg350-767ce0ddc06ba1d499347f1bccc99d6892b87136.tar.gz scummvm-rg350-767ce0ddc06ba1d499347f1bccc99d6892b87136.tar.bz2 scummvm-rg350-767ce0ddc06ba1d499347f1bccc99d6892b87136.zip |
MADS: Reduce the scope of a variable in panTransition
Diffstat (limited to 'engines/mads')
-rw-r--r-- | engines/mads/screen.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/mads/screen.cpp b/engines/mads/screen.cpp index c9f5df8b98..90fbbe7e2a 100644 --- a/engines/mads/screen.cpp +++ b/engines/mads/screen.cpp @@ -687,7 +687,6 @@ void ScreenSurface::panTransition(MSurface &newScreen, byte *palData, int entryS int y1, y2; int startX = 0; int deltaX; - int xAt; int loopStart; // uint32 baseTicks, currentTicks; byte paletteMap[256]; @@ -720,7 +719,7 @@ void ScreenSurface::panTransition(MSurface &newScreen, byte *palData, int entryS loopStart = throughBlack == THROUGH_BLACK1 ? 0 : 1; for (int loop = loopStart; loop < 2; ++loop) { - xAt = startX; + int xAt = startX; for (int xCtr = 0; xCtr < size.x; ++xCtr, xAt += deltaX) { if (!loop) { fillRect(Common::Rect(xAt + destPos.x, y1 + destPos.y, |