aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2006-04-15 01:56:49 +0000
committerTravis Howell2006-04-15 01:56:49 +0000
commitf1592e1fefb7d983ca1ddf8c5b72a71702cdef74 (patch)
treeb11f787372dcc6d04e3670d8a6453303e620ae56 /engines
parent10bc7b08876c278056b1f0e8a5b6eafb8e6bfe15 (diff)
downloadscummvm-rg350-f1592e1fefb7d983ca1ddf8c5b72a71702cdef74.tar.gz
scummvm-rg350-f1592e1fefb7d983ca1ddf8c5b72a71702cdef74.tar.bz2
scummvm-rg350-f1592e1fefb7d983ca1ddf8c5b72a71702cdef74.zip
Fix compile warnings I caused
svn-id: r21899
Diffstat (limited to 'engines')
-rw-r--r--engines/simon/vga.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/simon/vga.cpp b/engines/simon/vga.cpp
index c67fef5ca9..570021b160 100644
--- a/engines/simon/vga.cpp
+++ b/engines/simon/vga.cpp
@@ -1308,7 +1308,8 @@ void SimonEngine::horizontalScroll(VC10_state *state) {
_scrollYMax = 0;
_scrollImage = state->depack_src;
_scrollHeight = state->height;
- if (vcReadVar(34) < 0)
+ int tmp = vcReadVar(34);
+ if (tmp < 0)
state->x = vcReadVar(251);
_scrollX = state->x;
@@ -1340,7 +1341,8 @@ void SimonEngine::verticalScroll(VC10_state *state) {
_scrollYMax = state->height - 480;
_scrollImage = state->depack_src;
_scrollWidth = state->width;
- if (vcReadVar(34) < 0)
+ int tmp = vcReadVar(34);
+ if (tmp < 0)
state->y = vcReadVar(250);
_scrollY = state->y;