summaryrefslogtreecommitdiff
path: root/openttd.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-04-23 13:48:16 +0000
committertron <tron@openttd.org>2006-04-23 13:48:16 +0000
commit0347fb2ab67e942826523424c35ede66d27339fe (patch)
tree3f0769bd955cefba7ab80063e64546c1874e0a62 /openttd.h
parentb5ce99c52d1ce36f56431652f7fcc67eb9d5bf6d (diff)
downloadopenttd-0347fb2ab67e942826523424c35ede66d27339fe.tar.xz
(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
Diffstat (limited to 'openttd.h')
-rw-r--r--openttd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/openttd.h b/openttd.h
index e391002d6..576d17895 100644
--- a/openttd.h
+++ b/openttd.h
@@ -48,6 +48,7 @@ typedef struct YearMonthDay {
#define MAX_YEAR_END 170
#include "map.h"
+#include "slope.h"
// Forward declarations of structs.
typedef struct Vehicle Vehicle;
@@ -127,7 +128,7 @@ typedef enum TransportTypes {
typedef struct TileInfo {
uint x;
uint y;
- uint tileh;
+ Slope tileh;
uint type;
TileIndex tile;
uint z;
@@ -331,7 +332,7 @@ typedef void ChangeTileOwnerProc(TileIndex tile, PlayerID old_player, PlayerID n
* other bits that can be set? */
typedef uint32 VehicleEnterTileProc(Vehicle *v, TileIndex tile, int x, int y);
typedef void VehicleLeaveTileProc(Vehicle *v, TileIndex tile, int x, int y);
-typedef uint GetSlopeTilehProc(TileIndex, uint tileh);
+typedef Slope GetSlopeTilehProc(TileIndex, Slope tileh);
typedef struct {
DrawTileProc *draw_tile_proc;