aboutsummaryrefslogtreecommitdiff
path: root/engines/cine
diff options
context:
space:
mode:
authorKari Salminen2008-06-25 22:13:18 +0000
committerKari Salminen2008-06-25 22:13:18 +0000
commit1d71ab7e1fcf8d1545a9e508c4e21dc10ced2270 (patch)
tree8ace001857857007576e88c626dd3f6a9ae1e9fc /engines/cine
parent1339a55389efa97e484457a8963b69364a98452d (diff)
downloadscummvm-rg350-1d71ab7e1fcf8d1545a9e508c4e21dc10ced2270.tar.gz
scummvm-rg350-1d71ab7e1fcf8d1545a9e508c4e21dc10ced2270.tar.bz2
scummvm-rg350-1d71ab7e1fcf8d1545a9e508c4e21dc10ced2270.zip
Fix for GCC warning (Warned about testing x >= 0 when x is unsigned and therefore the test is always true).
svn-id: r32791
Diffstat (limited to 'engines/cine')
-rw-r--r--engines/cine/script_fw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/cine/script_fw.cpp b/engines/cine/script_fw.cpp
index b9dcad9877..148e673095 100644
--- a/engines/cine/script_fw.cpp
+++ b/engines/cine/script_fw.cpp
@@ -1773,7 +1773,7 @@ int16 checkCollision(int16 objIdx, int16 x, int16 y, int16 numZones, int16 zoneI
// The zoneQuery table is updated here only in Operation Stealth
if (g_cine->getGameType() == Cine::GType_OS) {
- if (zoneData[idx] >= 0 && zoneData[idx] < NUM_MAX_ZONE) {
+ if (zoneData[idx] < NUM_MAX_ZONE) {
zoneQuery[zoneData[idx]]++;
}
}