equal
deleted
inserted
replaced
131 03 (exit towards NW) we need either bit 0 or 4 set in tileh: 0x4C >> 3 = 1001<p> |
131 03 (exit towards NW) we need either bit 0 or 4 set in tileh: 0x4C >> 3 = 1001<p> |
132 So ((0x4C >> p2) & tileh) determines whether the depot can be built on the current tileh |
132 So ((0x4C >> p2) & tileh) determines whether the depot can be built on the current tileh |
133 */ |
133 */ |
134 static inline bool CanBuildDepotByTileh(uint32 direction, Slope tileh) |
134 static inline bool CanBuildDepotByTileh(uint32 direction, Slope tileh) |
135 { |
135 { |
136 return (0x4C >> direction) & tileh; |
136 return ((0x4C >> direction) & tileh) != 0; |
137 } |
137 } |
138 |
138 |
139 |
139 |
140 Depot *GetDepotByTile(TileIndex tile); |
140 Depot *GetDepotByTile(TileIndex tile); |
141 void InitializeDepot(void); |
141 void InitializeDepot(void); |