aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorjohndoe1232014-01-09 15:33:47 +0100
committerjohndoe1232014-01-09 15:33:47 +0100
commit4137128cf65b96f942d70e8456968d4bab105117 (patch)
tree62fc5cb7aed043e84ff2aa9aae14c761f189291c /engines
parentd19af62e6b5a00cd837502d4efede85e80588ff7 (diff)
downloadscummvm-rg350-4137128cf65b96f942d70e8456968d4bab105117.tar.gz
scummvm-rg350-4137128cf65b96f942d70e8456968d4bab105117.tar.bz2
scummvm-rg350-4137128cf65b96f942d70e8456968d4bab105117.zip
NEVERHOOD: Fix sprite shadows (e.g. when on top in module 1000, scene 1)
Diffstat (limited to 'engines')
-rw-r--r--engines/neverhood/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/neverhood/graphics.cpp b/engines/neverhood/graphics.cpp
index 490959020f..e976844c16 100644
--- a/engines/neverhood/graphics.cpp
+++ b/engines/neverhood/graphics.cpp
@@ -299,11 +299,11 @@ void unpackSpriteRle(const byte *source, int width, int height, byte *dest, int
}
source += copy;
}
- dest += destPitch;
if (replaceColors)
for (int xc = 0; xc < width; xc++)
if (dest[xc] == oldColor)
dest[xc] = newColor;
+ dest += destPitch;
}
}
rows = READ_LE_UINT16(source);