depot.h
changeset 2952 58522ed8f0f1
parent 2493 f6b4300cc2b0
child 3147 fc76d566a68e
equal deleted inserted replaced
2951:2de6d3a59743 2952:58522ed8f0f1
    73 /**
    73 /**
    74  * Check if a tile is a depot of the given type.
    74  * Check if a tile is a depot of the given type.
    75  */
    75  */
    76 static inline bool IsTileDepotType(TileIndex tile, TransportType type)
    76 static inline bool IsTileDepotType(TileIndex tile, TransportType type)
    77 {
    77 {
    78 	switch(type)
    78 	switch (type)
    79 	{
    79 	{
    80 		case TRANSPORT_RAIL:
    80 		case TRANSPORT_RAIL:
    81 			return IsTileType(tile, MP_RAILWAY) && (_m[tile].m5 & 0xFC) == 0xC0;
    81 			return IsTileType(tile, MP_RAILWAY) && (_m[tile].m5 & 0xFC) == 0xC0;
    82 
    82 
    83 		case TRANSPORT_ROAD:
    83 		case TRANSPORT_ROAD: