(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing.
This commit is contained in:
4
tile.h
4
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)
|
||||
|
||||
Reference in New Issue
Block a user