[Scummvm-cvs-logs] scummvm master -> 78eff8fea96bf0391fa50410950b44917c634955
Strangerke
Strangerke at scummvm.org
Sun Feb 9 20:28:14 CET 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
78eff8fea9 GOB: Fascination - Reduce the scope of a couple of variables
Commit: 78eff8fea96bf0391fa50410950b44917c634955
https://github.com/scummvm/scummvm/commit/78eff8fea96bf0391fa50410950b44917c634955
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-02-09T11:26:47-08:00
Commit Message:
GOB: Fascination - Reduce the scope of a couple of variables
Changed paths:
engines/gob/draw_fascin.cpp
diff --git a/engines/gob/draw_fascin.cpp b/engines/gob/draw_fascin.cpp
index 12009d7..c248cdf 100644
--- a/engines/gob/draw_fascin.cpp
+++ b/engines/gob/draw_fascin.cpp
@@ -882,8 +882,6 @@ bool Draw_Fascination::overlapWin(int16 idWin1, int16 idWin2) {
void Draw_Fascination::activeWin(int16 id) {
bool found = false;
int16 t[10], t2[10];
- int nextId = -1;
- int oldId = -1;
SurfacePtr tempSrf;
SurfacePtr oldSrf[10];
@@ -906,6 +904,8 @@ void Draw_Fascination::activeWin(int16 id) {
}
if (found) {
+ int nextId = -1;
+ int oldId = -1;
for (int i = 9; i >= 0; i--) {
if (t[i] != -1) {
if (nextId != -1)
More information about the Scummvm-git-logs
mailing list