aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1
diff options
context:
space:
mode:
authorSven Hesse2009-02-28 10:58:46 +0000
committerSven Hesse2009-02-28 10:58:46 +0000
commit78f28d3f307613a00e20143ae1f9bc60dccce168 (patch)
treedf0eb25184d4bfc728754561ed59cf26fac85763 /engines/sword1
parent440fcb1d5abb1100074b3fdf69f8df26850c390a (diff)
downloadscummvm-rg350-78f28d3f307613a00e20143ae1f9bc60dccce168.tar.gz
scummvm-rg350-78f28d3f307613a00e20143ae1f9bc60dccce168.tar.bz2
scummvm-rg350-78f28d3f307613a00e20143ae1f9bc60dccce168.zip
Shutting up a compiler warning
svn-id: r38958
Diffstat (limited to 'engines/sword1')
-rw-r--r--engines/sword1/screen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/screen.cpp b/engines/sword1/screen.cpp
index 3d184e15e5..2a7bd60eb7 100644
--- a/engines/sword1/screen.cpp
+++ b/engines/sword1/screen.cpp
@@ -664,7 +664,7 @@ void Screen::renderParallax(uint8 *data) {
uint8 *dest = _screenBuf + scrnScrlX + (cnty + scrnScrlY) * _scrnSizeX/* * 2*/;
uint8 pix;
for (uint16 idx = 0; (idx < SCREEN_WIDTH) && (idx < paraSizeX); idx++) // make sure we don't write outside screen
- if (pix = *(src + idx)) //If data is 0x00, don't write (transparency)
+ if ((pix = *(src + idx))) //If data is 0x00, don't write (transparency)
*(dest + idx) = pix;
}
else