Files @ r3826:d244ffe5793f
Branch filter:

Location: cpp/openttd-patchpack/source/station_map.c

miham
(svn r4845) WebTranslator2 update to 2006-05-12 14:30:27
catalan - 45 fixed by jecaro (45)
czech - 2 fixed by Hadez (2)
danish - 9 fixed by Bjarni (9)
hungarian - 10 fixed by miham (10)
turkish - 2 fixed, 1 changed by jnmbk (3)
/* $Id$ */

#include "stdafx.h"
#include "openttd.h"
#include "station_map.h"


StationType GetStationType(TileIndex t)
{
	assert(IsTileType(t, MP_STATION));
	if (IsRailwayStation(t)) return STATION_RAIL;
	if (IsHangar(t)) return STATION_HANGAR;
	if (IsAirport(t)) return STATION_AIRPORT;
	if (IsTruckStop(t)) return STATION_TRUCK;
	if (IsBusStop(t)) return STATION_BUS;
	if (IsOilRig(t)) return STATION_OILRIG;
	if (IsDock(t)) return STATION_DOCK;
	assert(IsBuoy_(t));
	return STATION_BUOY;
}