summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-20 20:08:10 +0000
committertron <tron@openttd.org>2005-06-20 20:08:10 +0000
commit7ea9ddacbb80dce6232809786f4dc2f1e195d253 (patch)
tree6455c0d98843253d006a99298d9d723142157793
parent0052c1de847dd09095758d4f03506ff6a729ed8b (diff)
downloadopenttd-7ea9ddacbb80dce6232809786f4dc2f1e195d253.tar.xz
(svn r2464) Move definition of _inclined_tileh out of variables.h
-rw-r--r--landscape.c4
-rw-r--r--variables.h5
2 files changed, 5 insertions, 4 deletions
diff --git a/landscape.c b/landscape.c
index 1f5cffddb..095393def 100644
--- a/landscape.c
+++ b/landscape.c
@@ -43,6 +43,10 @@ const byte _tileh_to_sprite[32] = {
0,0,0,0,0,0,0,16,0,0,0,17,0,15,18,0,
};
+const byte _inclined_tileh[] = {
+ 3, 9, 3, 6, 12, 6, 12, 9
+};
+
void FindLandscapeHeightByTile(TileInfo *ti, TileIndex tile)
{
diff --git a/variables.h b/variables.h
index 3525783b9..1b35d5d81 100644
--- a/variables.h
+++ b/variables.h
@@ -432,10 +432,7 @@ static inline uint32 GetDParam(uint n)
/* landscape.c */
extern const byte _tileh_to_sprite[32];
-
-static const byte _inclined_tileh[] = {
- 3,9,3,6,12,6,12,9,
-};
+extern const byte _inclined_tileh[8];
extern const TileTypeProcs * const _tile_type_procs[16];