Files @ r4054:77af7bb218ef
Branch filter:

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

miham
(svn r5328) WebTranslator2 update to 2006-06-21 19:52:04
american - 1 fixed by WhiteRabbit (1)
dutch - 1 fixed, 1 changed by habell (2)
french - 1 fixed by glx (1)
german - 4 fixed by moewe2 (4)
italian - 1 fixed, 1 changed by sidew (2)
polish - 1 fixed by meush (1)
ukrainian - 1 fixed by znikoz (1)
/* $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;
}