summaryrefslogtreecommitdiff
path: root/src/station_map.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-04-18 18:20:31 +0000
committerrubidium <rubidium@openttd.org>2007-04-18 18:20:31 +0000
commit13c587bf39e1b668a24858e36549ea40e604b21b (patch)
treed3bb34af70e8e355de6b714c844d9402002c01e2 /src/station_map.cpp
parentd1c2c90ad01d056e88abb4a1d9e356418edc747b (diff)
downloadopenttd-13c587bf39e1b668a24858e36549ea40e604b21b.tar.xz
(svn r9670) -Documentation: add documentation to some the _map files.
Diffstat (limited to 'src/station_map.cpp')
-rw-r--r--src/station_map.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/station_map.cpp b/src/station_map.cpp
index afe9d6ad6..d1552a082 100644
--- a/src/station_map.cpp
+++ b/src/station_map.cpp
@@ -6,7 +6,12 @@
#include "openttd.h"
#include "station_map.h"
-
+/**
+ * Get the station type (rail, airport, truck etc) for the given tile.
+ * @param t the tile to get the station type of.
+ * @pre IsTileType(t, MP_STATION)
+ * @return the station type of the given tile.
+ */
StationType GetStationType(TileIndex t)
{
assert(IsTileType(t, MP_STATION));