Fix warnings

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4864 4a71c877-e1ca-e34f-864e-861f7616d084
master
Per Inge Mathisen 2008-04-30 17:14:16 +00:00
parent 405a03ba95
commit 28da8c3c36
3 changed files with 5 additions and 7 deletions

View File

@ -100,9 +100,7 @@ static INTERP_VAL scrFunctionResult; //function return value to be pushed to sta
static SDWORD bitMask[] = {0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
static char strParam1[MAXSTRLEN], strParam2[MAXSTRLEN]; //these should be used as string parameters for stackPopParams()
static void updateVisibleTiles(SDWORD player);
static BOOL structHasModule(STRUCTURE *psStruct);
/******************************************************************************************/
/* Check for objects in areas */

View File

@ -77,10 +77,10 @@ static SDWORD numWalls; // Whether the LOS has hit a wall
static SDWORD wallX,wallY; // the position of a wall if it is on the LOS
BOOL rayTerrainCallback(SDWORD x, SDWORD y, SDWORD dist);
bool scrRayTerrainCallback(SDWORD x, SDWORD y, SDWORD dist);
BOOL scrRayTerrainCallback(SDWORD x, SDWORD y, SDWORD dist);
// holds information about map tiles visible by droids
static bool scrTileVisible[MAX_PLAYERS][UBYTE_MAX][UBYTE_MAX] = {false};
static bool scrTileVisible[MAX_PLAYERS][UBYTE_MAX][UBYTE_MAX] = {{{false}}};
bool scrTileIsVisible(SDWORD player, SDWORD x, SDWORD y);
void scrResetPlayerTileVisibility(SDWORD player);
@ -749,7 +749,7 @@ void updateSensorDisplay()
}
}
bool scrRayTerrainCallback(SDWORD x, SDWORD y, SDWORD dist)
BOOL scrRayTerrainCallback(SDWORD x, SDWORD y, SDWORD dist)
{
SDWORD newH, newG; // The new gradient
MAPTILE *psTile;

View File

@ -33,7 +33,7 @@ extern BOOL visTilesPending(BASE_OBJECT *psObj);
extern BOOL rayTerrainCallback(SDWORD x, SDWORD y, SDWORD dist);
/* Ray callback for scripts */
extern bool scrRayTerrainCallback(SDWORD x, SDWORD y, SDWORD dist);
extern BOOL scrRayTerrainCallback(SDWORD x, SDWORD y, SDWORD dist);
/* Check which tiles can be seen by an object */
extern void visTilesUpdate(BASE_OBJECT *psObj, RAY_CALLBACK callback);