depot.h
changeset 3636 d87b21df2944
parent 3347 d5d8ace1bb13
child 3884 475989407ceb
equal deleted inserted replaced
3635:59265706435c 3636:d87b21df2944
   133       01 (exit towards SE) we need either bit 1 or 2 set in tileh: 0x4C >> 1 = 0110<p>
   133       01 (exit towards SE) we need either bit 1 or 2 set in tileh: 0x4C >> 1 = 0110<p>
   134       02 (exit towards SW) we need either bit 0 or 1 set in tileh: 0x4C >> 2 = 0011<p>
   134       02 (exit towards SW) we need either bit 0 or 1 set in tileh: 0x4C >> 2 = 0011<p>
   135       03 (exit towards NW) we need either bit 0 or 4 set in tileh: 0x4C >> 3 = 1001<p>
   135       03 (exit towards NW) we need either bit 0 or 4 set in tileh: 0x4C >> 3 = 1001<p>
   136       So ((0x4C >> p2) & tileh) determines whether the depot can be built on the current tileh
   136       So ((0x4C >> p2) & tileh) determines whether the depot can be built on the current tileh
   137 */
   137 */
   138 static inline bool CanBuildDepotByTileh(uint32 direction, uint tileh)
   138 static inline bool CanBuildDepotByTileh(uint32 direction, Slope tileh)
   139 {
   139 {
   140 	return (0x4C >> direction) & tileh;
   140 	return (0x4C >> direction) & tileh;
   141 }
   141 }
   142 
   142 
   143 
   143