summaryrefslogtreecommitdiff
path: root/src/object.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-12 19:18:58 +0000
committerrubidium <rubidium@openttd.org>2010-08-12 19:18:58 +0000
commit089fc97387af79a8023677ac60ca1f6623da1dc5 (patch)
tree0735f286c240e6b56842dc384dbb4d5e4337d58c /src/object.h
parent61df1a372c373a475e08812bc3f3c481dee80e66 (diff)
downloadopenttd-089fc97387af79a8023677ac60ca1f6623da1dc5.tar.xz
(svn r20473) -Codechange: pass Town instead of TownID to BuildObject
Diffstat (limited to 'src/object.h')
-rw-r--r--src/object.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object.h b/src/object.h
index bb2afd60c..f07ab3039 100644
--- a/src/object.h
+++ b/src/object.h
@@ -28,11 +28,11 @@ void UpdateCompanyHQ(TileIndex tile, uint score);
* @param type The type of object to build.
* @param tile The tile to build the northern tile of the object on.
* @param owner The owner of the object.
- * @param index A (generic) index to be stored on the tile, e.g. TownID for statues.
+ * @param town Town the tile is related with.
* @pre All preconditions for building the object at that location
* are met, e.g. slope and clearness of tiles are checked.
*/
-void BuildObject(ObjectType type, TileIndex tile, CompanyID owner = OWNER_NONE, uint index = 0);
+void BuildObject(ObjectType type, TileIndex tile, CompanyID owner = OWNER_NONE, struct Town *town = NULL);
/** Various object behaviours. */