Files @ r4693:6560f80c47ae
Branch filter:

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

miham
(svn r6600) WebTranslator2 update to 2006-10-01 08:20:02
brazilian_portuguese - 5 changed by tucalipe (5)
catalan - 41 fixed by arnaullv (41)
french - 41 fixed, 16 changed by glx (57)
hungarian - 32 fixed by miham (32)
polish - 33 fixed by meush (33)
spanish - 40 fixed by eusebio (40)
turkish - 2 fixed by edokan (2)
/* $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;
}