summaryrefslogtreecommitdiff
path: root/src/newgrf_house.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-26 16:48:32 +0000
committerrubidium <rubidium@openttd.org>2010-08-26 16:48:32 +0000
commit9982b5fd00620345b3d905407acf6ad21ec5c6c9 (patch)
tree763bdf0dccc189e30fab46ba949fa72eb05d6aef /src/newgrf_house.cpp
parente2e26190d55fe5a7e053791ac9bce095b303be10 (diff)
downloadopenttd-9982b5fd00620345b3d905407acf6ad21ec5c6c9.tar.xz
(svn r20624) -Codechange: some constifying for NewGRF house
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r--src/newgrf_house.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp
index 94fc02d1e..4509cbeac 100644
--- a/src/newgrf_house.cpp
+++ b/src/newgrf_house.cpp
@@ -369,7 +369,7 @@ static const SpriteGroup *HouseResolveReal(const ResolverObject *object, const R
*
* Returns a resolver object to be used with feature 07 spritegroups.
*/
-static void NewHouseResolver(ResolverObject *res, HouseID house_id, TileIndex tile, Town *town)
+static void NewHouseResolver(ResolverObject *res, HouseID house_id, TileIndex tile, const Town *town)
{
res->GetRandomBits = HouseGetRandomBits;
res->GetTriggers = HouseGetTriggers;
@@ -394,7 +394,7 @@ static void NewHouseResolver(ResolverObject *res, HouseID house_id, TileIndex ti
res->grffile = (hs != NULL ? hs->grf_prop.grffile : NULL);
}
-uint16 GetHouseCallback(CallbackID callback, uint32 param1, uint32 param2, HouseID house_id, Town *town, TileIndex tile, bool not_yet_constructed, uint8 initial_random_bits)
+uint16 GetHouseCallback(CallbackID callback, uint32 param1, uint32 param2, HouseID house_id, const Town *town, TileIndex tile, bool not_yet_constructed, uint8 initial_random_bits)
{
ResolverObject object;
const SpriteGroup *group;