summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-12 12:58:53 +0000
committercelestar <celestar@openttd.org>2006-04-12 12:58:53 +0000
commit5d949514966a75672cb0ec23f24567d262183cae (patch)
tree1cf91a71ab03001bd3d4273fc5476d05525c45fb
parentbdcb4bbf1d9119c261d5304867b623c32088fb44 (diff)
downloadopenttd-5d949514966a75672cb0ec23f24567d262183cae.tar.xz
(svn r4385) -Codechange: remove map5 from the TileInfo struct as it is now unused. This effort is starting to pay off ...
-rw-r--r--landscape.c2
-rw-r--r--openttd.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/landscape.c b/landscape.c
index a86a6c463..26545958c 100644
--- a/landscape.c
+++ b/landscape.c
@@ -65,14 +65,12 @@ void FindLandscapeHeight(TileInfo *ti, uint x, uint y)
ti->tileh = 0;
ti->type = MP_VOID;
ti->tile = 0;
- ti->map5 = 0;
ti->z = 0;
} else {
TileIndex tile = TileVirtXY(x, y);
ti->tile = tile;
ti->type = GetTileType(tile);
- ti->map5 = _m[tile].m5;
ti->tileh = GetTileSlope(tile, &ti->z);
}
}
diff --git a/openttd.h b/openttd.h
index 1038d3bbf..e391002d6 100644
--- a/openttd.h
+++ b/openttd.h
@@ -129,7 +129,6 @@ typedef struct TileInfo {
uint y;
uint tileh;
uint type;
- uint map5;
TileIndex tile;
uint z;
} TileInfo;