(svn r1898) Remove some unused macros from macros.h and move some others to more appropriate headers

This commit is contained in:
tron
2005-02-22 12:48:03 +00:00
parent 76b016dd58
commit a370af76d2
6 changed files with 13 additions and 25 deletions

8
tile.h
View File

@@ -1,6 +1,7 @@
#ifndef TILE_H
#define TILE_H
#include "macros.h"
#include "map.h"
typedef enum TileType {
@@ -23,6 +24,13 @@ uint GetMapExtraBits(TileIndex tile);
uint GetTileSlope(TileIndex tile, uint *h);
uint GetTileZ(TileIndex tile);
static inline bool CorrectZ(uint tileh)
{
/* tile height must be corrected if the north corner is not raised, but
* any other corner is. These are the cases 1 till 7 */
return IS_INT_INSIDE(tileh, 1, 8);
}
static inline uint TileHeight(TileIndex tile)
{
assert(tile < MapSize());