forked from mirror/OpenTTD
(svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
This commit is contained in:
10
map.h
10
map.h
@@ -67,11 +67,11 @@ static inline TileIndex TileVirtXY(uint x, uint y)
|
||||
return (y >> 4 << MapLogX()) + (x >> 4);
|
||||
}
|
||||
|
||||
typedef enum {
|
||||
OWNER_TOWN = 0xf, // a town owns the tile
|
||||
OWNER_NONE = 0x10, // nobody owns the tile
|
||||
OWNER_WATER = 0x11, // "water" owns the tile
|
||||
OWNER_SPECTATOR = 0xff, // spectator in MP or in scenario editor
|
||||
typedef enum Owner {
|
||||
OWNER_TOWN = 0x0F, // a town owns the tile
|
||||
OWNER_NONE = 0x10, // nobody owns the tile
|
||||
OWNER_WATER = 0x11, // "water" owns the tile
|
||||
OWNER_SPECTATOR = 0xFF, // spectator in MP or in scenario editor
|
||||
} Owner;
|
||||
|
||||
enum {
|
||||
|
Reference in New Issue
Block a user