Core: fix "comparison of unsigned expression < 0 is always false" warnings

--HG--
branch : trunk
This commit is contained in:
Spp
2010-08-21 23:40:53 +02:00
parent 572f7bbd1d
commit a40cb46e61
4 changed files with 19 additions and 7 deletions
+2 -2
View File
@@ -150,10 +150,10 @@ namespace VMAP
{
float tx_f = (pos.x - iCorner.x)/LIQUID_TILE_SIZE;
uint32 tx = uint32(tx_f);
if (tx<0 || tx >= iTilesX) return false;
if (tx >= iTilesX) return false;
float ty_f = (pos.y - iCorner.y)/LIQUID_TILE_SIZE;
uint32 ty = uint32(ty_f);
if (ty<0 || ty >= iTilesY) return false;
if (ty >= iTilesY) return false;
// check if tile shall be used for liquid level
// checking for 0x08 *might* be enough, but disabled tiles always are 0x?F: