some const correctness
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@4662 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
5cdf20261d
commit
5b0612e881
|
@ -137,7 +137,7 @@ typedef struct _maptile
|
||||||
|
|
||||||
extern UBYTE terrainTypes[MAX_TILE_TEXTURES];
|
extern UBYTE terrainTypes[MAX_TILE_TEXTURES];
|
||||||
|
|
||||||
static inline unsigned char terrainType(MAPTILE * tile)
|
static inline unsigned char terrainType(const MAPTILE * tile)
|
||||||
{
|
{
|
||||||
return terrainTypes[TileNumber_tile(tile->texture)];
|
return terrainTypes[TileNumber_tile(tile->texture)];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue