Files @ r4645:1dac9590458b
Branch filter:

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

miham
(svn r6521) WebTranslator2 update to 2006-09-27 13:29:33
catalan - 4 fixed by arnaullv (4)
czech - 4 fixed by Hadez (4)
dutch - 4 fixed by habell (4)
french - 4 fixed by glx (4)
hungarian - 4 fixed by miham (4)
italian - 4 fixed by sidew (4)
spanish - 4 fixed by eusebio (4)
swedish - 38 fixed, 78 changed by cjw (116)
/* $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;
}