depot.h
changeset 4000 4009d092b306
parent 3957 25f4a4f22e05
child 4077 d4d440dd8925
equal deleted inserted replaced
3999:69dfaadb5c3c 4000:4009d092b306
    70 /**
    70 /**
    71  * Check if a tile is a depot of the given type.
    71  * Check if a tile is a depot of the given type.
    72  */
    72  */
    73 static inline bool IsTileDepotType(TileIndex tile, TransportType type)
    73 static inline bool IsTileDepotType(TileIndex tile, TransportType type)
    74 {
    74 {
    75 	switch (type)
    75 	switch (type) {
    76 	{
       
    77 		case TRANSPORT_RAIL:
    76 		case TRANSPORT_RAIL:
    78 			return IsTileType(tile, MP_RAILWAY) && (_m[tile].m5 & 0xFC) == 0xC0;
    77 			return IsTileType(tile, MP_RAILWAY) && (_m[tile].m5 & 0xFC) == 0xC0;
    79 
    78 
    80 		case TRANSPORT_ROAD:
    79 		case TRANSPORT_ROAD:
    81 			return IsTileType(tile, MP_STREET) && (_m[tile].m5 & 0xF0) == 0x20;
    80 			return IsTileType(tile, MP_STREET) && (_m[tile].m5 & 0xF0) == 0x20;