station_map.h
changeset 3900 2c84ed52709d
parent 3882 c2e3e12e71d6
child 4041 72276cd8ee2b
equal deleted inserted replaced
3899:5ba7f20a14ca 3900:2c84ed52709d
   136  * Gets the direction the road stop entrance points towards.
   136  * Gets the direction the road stop entrance points towards.
   137  */
   137  */
   138 static inline DiagDirection GetRoadStopDir(TileIndex t)
   138 static inline DiagDirection GetRoadStopDir(TileIndex t)
   139 {
   139 {
   140 	assert(IsRoadStopTile(t));
   140 	assert(IsRoadStopTile(t));
   141 	return (GetStationGfx(t) - GFX_TRUCK_BASE) & 3;
   141 	return (DiagDirection)((GetStationGfx(t) - GFX_TRUCK_BASE) & 3);
   142 }
   142 }
   143 
   143 
   144 static inline bool IsOilRig(TileIndex t)
   144 static inline bool IsOilRig(TileIndex t)
   145 {
   145 {
   146 	return GetStationGfx(t) == GFX_OILRIG_BASE;
   146 	return GetStationGfx(t) == GFX_OILRIG_BASE;