equal
deleted
inserted
replaced
65 static inline TileIndex TileVirtXY(uint x, uint y) |
65 static inline TileIndex TileVirtXY(uint x, uint y) |
66 { |
66 { |
67 return (y >> 4 << MapLogX()) + (x >> 4); |
67 return (y >> 4 << MapLogX()) + (x >> 4); |
68 } |
68 } |
69 |
69 |
70 typedef byte Owner; |
|
71 enum Owners { |
|
72 OWNER_TOWN = 0x0F, // a town owns the tile |
|
73 OWNER_NONE = 0x10, // nobody owns the tile |
|
74 OWNER_WATER = 0x11, // "water" owns the tile |
|
75 OWNER_END = 0x12, |
|
76 }; |
|
77 |
70 |
78 enum { |
71 enum { |
79 INVALID_TILE = (TileIndex)-1 |
72 INVALID_TILE = (TileIndex)-1 |
80 }; |
73 }; |
81 |
74 |