Fix for GCC warning (Warned about testing x >= 0 when x is unsigned and therefore the test is always true).

svn-id: r32791
This commit is contained in:
Kari Salminen 2008-06-25 22:13:18 +00:00
parent 1339a55389
commit 1d71ab7e1f

View File

@ -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]]++;
}
}