Files @ r4951:1e348f5068ac
Branch filter:

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

miham
(svn r6942) WebTranslator2 update to 2006-10-25 21:34:26
bulgarian - 11 fixed, 5 changed by groupsky (16)
czech - 4 fixed, 3 changed by Hadez (7)
dutch - 1 fixed by habell (1)
galician - 22 fixed by Condex (22)
italian - 2 changed by sidew (2)
swedish - 4 fixed, 2 changed by daishan (6)
/* $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;
}