Changeset - r15926:b9bdb21d1662
[Not reviewed]
master
0 3 0
rubidium - 14 years ago 2010-08-26 16:48:32
rubidium@openttd.org
(svn r20624) -Codechange: some constifying for NewGRF house
3 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/newgrf_house.cpp
Show inline comments
 
@@ -369,7 +369,7 @@ static const SpriteGroup *HouseResolveRe
 
 *
 
 * 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(ResolverObj
 
	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;
src/newgrf_house.h
Show inline comments
 
@@ -44,7 +44,7 @@ void DrawNewHouseTile(TileInfo *ti, Hous
 
void AnimateNewHouseTile(TileIndex tile);
 
void ChangeHouseAnimationFrame(const struct GRFFile *file, TileIndex tile, uint16 callback_result);
 

	
 
uint16 GetHouseCallback(CallbackID callback, uint32 param1, uint32 param2, HouseID house_id, Town *town, TileIndex tile, bool not_yet_constructed = false, uint8 initial_random_bits = 0);
 
uint16 GetHouseCallback(CallbackID callback, uint32 param1, uint32 param2, HouseID house_id, const Town *town, TileIndex tile, bool not_yet_constructed = false, uint8 initial_random_bits = 0);
 

	
 
bool CanDeleteHouse(TileIndex tile);
 

	
src/newgrf_spritegroup.h
Show inline comments
 
@@ -321,7 +321,7 @@ struct ResolverObject {
 
		} station;
 
		struct {
 
			TileIndex tile;
 
			Town *town;
 
			const Town *town;
 
			HouseID house_id;
 
			uint16 initial_random_bits;    ///< Random bits during construction checks
 
			bool not_yet_constructed;      ///< True for construction check
0 comments (0 inline, 0 general)