summaryrefslogtreecommitdiff
path: root/src/newgrf_house.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-04-24 13:35:18 +0000
committerrubidium <rubidium@openttd.org>2010-04-24 13:35:18 +0000
commit1da0086a4537487e12d1ae3c0c9d57079349000d (patch)
tree1dad6fdf48230934b01963ae9af3a4157f889df9 /src/newgrf_house.cpp
parente75e2648fc5a9c741629ef1efc8a097c655ed035 (diff)
downloadopenttd-1da0086a4537487e12d1ae3c0c9d57079349000d.tar.xz
(svn r19707) -Add: helper functions to instantiate/fill ResolverObjects
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r--src/newgrf_house.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index 3ea73c4cd..1f53e2c73 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -656,3 +656,13 @@ void TriggerHouse(TileIndex t, HouseTrigger trigger)
{
DoTriggerHouse(t, trigger, 0, true);
}
+
+/**
+ * Resolve a house's spec and such so we can get a variable.
+ * @param ro The resolver object to fill.
+ * @param index The house tile to get the data from.
+ */
+void GetHouseResolver(ResolverObject *ro, uint index)
+{
+ NewHouseResolver(ro, GetHouseType(index), index, Town::GetByTile(index));
+}