Remove unused TILE_BITMASK and use INT32_MAX instead of possibly undefined INT_MAX.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1786 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2007-06-01 19:40:18 +00:00
parent b532b1cc60
commit 3bc52689dc
2 changed files with 1 additions and 2 deletions

View File

@ -3951,7 +3951,7 @@ static void locateMouse(void)
{
const POINT pt = {mouseXPos, mouseYPos};
unsigned int i;
int nearestZ = INT_MAX;
int nearestZ = INT32_MAX;
for(i = 0; i < visibleXTiles; ++i)
{

View File

@ -67,7 +67,6 @@ typedef enum _terrain_type
#define TILE_NOTBLOCKING 0x0200 // units can drive on this even if there is a structure or feature on it
#define TILE_NUMMASK 0x01ff
#define TILE_BITMASK 0xfe00
#define BITS_NODRAWTILE 0x4
#define BITS_FPATHBLOCK 0x10 // bit set temporarily by find path to mark a blocking tile