File diff r2951:a52cbb930051 → r2952:e97f823d2dbe
depot.h
Show inline comments
 
@@ -72,13 +72,13 @@ static inline bool IsValidDepot(const De
 

	
 
/**
 
 * Check if a tile is a depot of the given type.
 
 */
 
static inline bool IsTileDepotType(TileIndex tile, TransportType type)
 
{
 
	switch(type)
 
	switch (type)
 
	{
 
		case TRANSPORT_RAIL:
 
			return IsTileType(tile, MP_RAILWAY) && (_m[tile].m5 & 0xFC) == 0xC0;
 

	
 
		case TRANSPORT_ROAD:
 
			return IsTileType(tile, MP_STREET) && (_m[tile].m5 & 0xF0) == 0x20;