Skip to content

Commit

Permalink
MADS: Reduce the scope of a variable in panTransition
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Nov 22, 2015
1 parent a12516e commit 767ce0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions engines/mads/screen.cpp
Expand Up @@ -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];
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 767ce0d

Please sign in to comment.