Files @ r5183:554598f00547
Branch filter:

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

miham
(svn r7293) WebTranslator2 update to 2006-11-30 08:56:49
brazilian_portuguese - 4 fixed by tucalipe (4)
catalan - 4 fixed, 31 changed by arnaullv (35)
croatian - 13 fixed by blozo (13)
french - 4 fixed by glx (4)
german - 1 fixed by Neonox (1)
hungarian - 7 fixed by miham (7)
/* $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 (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;
}