forked from mirror/OpenTTD
(svn r6775) -Codechange: Use some more proper types, especially Owner and PlayerID as
these are used intermixed often.
This commit is contained in:
5
map.h
5
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
|
||||
|
Reference in New Issue
Block a user