equal
deleted
inserted
replaced
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; |