summaryrefslogtreecommitdiff
path: root/table/genland.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-06 11:39:00 +0000
committertron <tron@openttd.org>2005-01-06 11:39:00 +0000
commitf8c95a1dbeac23296cacc83ae25d2a8b352cd83d (patch)
treef875975dc056d7d3fea370018fa0bdf62837fd3e /table/genland.h
parent790b03c7071388addd4cb064e473e96f8e1f12e0 (diff)
downloadopenttd-f8c95a1dbeac23296cacc83ae25d2a8b352cd83d.tar.xz
(svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDiff
Diffstat (limited to 'table/genland.h')
-rw-r--r--table/genland.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/table/genland.h b/table/genland.h
index 719e5e6b4..a0d1e8b6f 100644
--- a/table/genland.h
+++ b/table/genland.h
@@ -1,7 +1,6 @@
-#define M(x,y) TILE_XY(x,y)
+#define M(x,y) {x, y}
-#define MDORD_LAST 99
-static const TileIndexDiff _make_desert_or_rainforest_data[150] = {
+static const TileIndexDiffC _make_desert_or_rainforest_data[] = {
M(-5,-6),
M(-4,-6),
M(-3,-6),
@@ -150,8 +149,7 @@ static const TileIndexDiff _make_desert_or_rainforest_data[150] = {
M(6,3),
M(-6,2),
M(3,6),
- M(3,-6),
- MDORD_LAST,
+ M(3,-6)
};