summaryrefslogtreecommitdiff
path: root/src/landscape.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-10-13 03:26:48 +0000
committerrubidium <rubidium@openttd.org>2008-10-13 03:26:48 +0000
commit3ee482ca1bd4eb1ff049c4506d864c87f227f463 (patch)
tree85fa073697b6d9960bca90c52e215ea66078536e /src/landscape.cpp
parentc768516a61ee02b6a773418300d571cf865490ae (diff)
downloadopenttd-3ee482ca1bd4eb1ff049c4506d864c87f227f463.tar.xz
(svn r14461) -Document: add some doxygen comments (Albert)
Diffstat (limited to 'src/landscape.cpp')
-rw-r--r--src/landscape.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/landscape.cpp b/src/landscape.cpp
index 2e4e10c47..2277bdff0 100644
--- a/src/landscape.cpp
+++ b/src/landscape.cpp
@@ -67,7 +67,7 @@ const byte _tileh_to_sprite[32] = {
SnowLine *_snow_line = NULL;
/**
- * Applys a foundation to a slope.
+ * Applies a foundation to a slope.
*
* @pre Foundation and slope must be valid combined.
* @param f The #Foundation.
@@ -473,6 +473,12 @@ TrackStatus GetTileTrackStatus(TileIndex tile, TransportType mode, uint sub_mode
return _tile_type_procs[GetTileType(tile)]->get_tile_track_status_proc(tile, mode, sub_mode, side);
}
+/**
+ * Change the owner of a tile
+ * @param tile Tile to change
+ * @param old_owner Current owner of the tile
+ * @param new_owner New owner of the tile
+ */
void ChangeTileOwner(TileIndex tile, Owner old_owner, Owner new_owner)
{
_tile_type_procs[GetTileType(tile)]->change_tile_owner_proc(tile, old_owner, new_owner);