depot.h
changeset 3900 2c84ed52709d
parent 3884 793081f80381
child 3953 e64bbd8598e2
equal deleted inserted replaced
3899:5ba7f20a14ca 3900:2c84ed52709d
   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);