diff options
author | rubidium <rubidium@openttd.org> | 2007-07-25 19:06:29 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-25 19:06:29 +0000 |
commit | 9e3ee0e689343c7701453c0fa4220d21fa3c46ce (patch) | |
tree | f2e904bfcb0f95592e6d631d8b0bacddd27cbdd6 /src/newgrf_house.cpp | |
parent | 77b0e30b763688e108f49f1d035aee8daa51c6ac (diff) | |
download | openttd-9e3ee0e689343c7701453c0fa4220d21fa3c46ce.tar.xz |
(svn r10690) -Codechange: use the enum that describes all callback IDs in favor of "just" using an untyped integer.
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r-- | src/newgrf_house.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index 4ec663143..5656470f3 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -274,7 +274,7 @@ static void NewHouseResolver(ResolverObject *res, HouseID house_id, TileIndex ti res->u.house.town = town; res->u.house.house_id = house_id; - res->callback = 0; + res->callback = CBID_NO_CALLBACK; res->callback_param1 = 0; res->callback_param2 = 0; res->last_value = 0; @@ -282,7 +282,7 @@ static void NewHouseResolver(ResolverObject *res, HouseID house_id, TileIndex ti res->reseed = 0; } -uint16 GetHouseCallback(uint16 callback, uint32 param1, uint32 param2, HouseID house_id, Town *town, TileIndex tile) +uint16 GetHouseCallback(CallbackID callback, uint32 param1, uint32 param2, HouseID house_id, Town *town, TileIndex tile) { ResolverObject object; const SpriteGroup *group; |