summaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-10-14 22:22:48 +0000
committerDarkvater <Darkvater@openttd.org>2006-10-14 22:22:48 +0000
commit2380bb56cd4a25eef126153bb6b5ccde8222fc5c (patch)
tree22ba5ac16dd749e7e43b599fadca173a359055c4 /map.h
parenta85d679f545ea7fec03db426ec033e5e83258a91 (diff)
downloadopenttd-2380bb56cd4a25eef126153bb6b5ccde8222fc5c.tar.xz
(svn r6775) -Codechange: Use some more proper types, especially Owner and PlayerID as
these are used intermixed often.
Diffstat (limited to 'map.h')
-rw-r--r--map.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/map.h b/map.h
index c4d803e5b..661515edd 100644
--- a/map.h
+++ b/map.h
@@ -67,12 +67,13 @@ static inline TileIndex TileVirtXY(uint x, uint y)
return (y >> 4 << MapLogX()) + (x >> 4);
}
-typedef enum Owner {
+typedef byte Owner;
+enum Owners {
OWNER_TOWN = 0x0F, // a town owns the tile
OWNER_NONE = 0x10, // nobody owns the tile
OWNER_WATER = 0x11, // "water" owns the tile
OWNER_END = 0x12,
-} Owner;
+};
enum {
INVALID_TILE = (TileIndex)-1