From 4137128cf65b96f942d70e8456968d4bab105117 Mon Sep 17 00:00:00 2001 From: johndoe123 Date: Thu, 9 Jan 2014 15:33:47 +0100 Subject: NEVERHOOD: Fix sprite shadows (e.g. when on top in module 1000, scene 1) --- engines/neverhood/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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); -- cgit v1.2.3