summaryrefslogtreecommitdiff
path: root/tile.h
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2006-05-27 16:12:16 +0000
committerKUDr <kudr@openttd.org>2006-05-27 16:12:16 +0000
commit5e73dce0e71791b87e5b096a890578eefcc26639 (patch)
treee4580db6e03032a997fce1392929b7190dc3b03d /tile.h
parent3d01010440440cfbffd1e5d3b0cf1f23f0503a76 (diff)
downloadopenttd-5e73dce0e71791b87e5b096a890578eefcc26639.tar.xz
(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing.
Diffstat (limited to 'tile.h')
-rw-r--r--tile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tile.h b/tile.h
index f4c098cf1..e23fc03f0 100644
--- a/tile.h
+++ b/tile.h
@@ -53,7 +53,7 @@ static inline uint TilePixelHeight(TileIndex tile)
static inline TileType GetTileType(TileIndex tile)
{
assert(tile < MapSize());
- return GB(_m[tile].type_height, 4, 4);
+ return (TileType)GB(_m[tile].type_height, 4, 4);
}
static inline void SetTileType(TileIndex tile, TileType type)
@@ -80,7 +80,7 @@ static inline Owner GetTileOwner(TileIndex tile)
assert(!IsTileType(tile, MP_VOID));
assert(!IsTileType(tile, MP_INDUSTRY));
- return _m[tile].m1;
+ return (Owner)_m[tile].m1;
}
static inline void SetTileOwner(TileIndex tile, Owner owner)