Files
@ r5312:ffd375effb01
Branch filter:
Location: cpp/openttd-patchpack/source/station_map.c - annotation
r5312:ffd375effb01
453 B
text/x-c
(svn r7468) -Codechange: [win32] Add some comments to MB/WIDE_TO_WIDE/MB_[BUFFER] macros and
use them some more in win32 code. Also for the clipboard use the convert_from_fs
function instead of calling Win32 API directly. Make the static buffers in OTTD2FS
and FS2OTTD the same size (character-length wise)
use them some more in win32 code. Also for the clipboard use the convert_from_fs
function instead of calling Win32 API directly. Make the static buffers in OTTD2FS
and FS2OTTD the same size (character-length wise)
r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 r3334:a57409640615 | /* $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;
}
|