mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r22560) -Codechange: Remove constness from House in ResolverObject.
This commit is contained in:
parent
e8df5563db
commit
76cd19f846
|
@ -365,7 +365,7 @@ static const SpriteGroup *HouseResolveReal(const ResolverObject *object, const R
|
||||||
*
|
*
|
||||||
* Returns a resolver object to be used with feature 07 spritegroups.
|
* Returns a resolver object to be used with feature 07 spritegroups.
|
||||||
*/
|
*/
|
||||||
static void NewHouseResolver(ResolverObject *res, HouseID house_id, TileIndex tile, const Town *town)
|
static void NewHouseResolver(ResolverObject *res, HouseID house_id, TileIndex tile, Town *town)
|
||||||
{
|
{
|
||||||
res->GetRandomBits = HouseGetRandomBits;
|
res->GetRandomBits = HouseGetRandomBits;
|
||||||
res->GetTriggers = HouseGetTriggers;
|
res->GetTriggers = HouseGetTriggers;
|
||||||
|
@ -390,7 +390,7 @@ static void NewHouseResolver(ResolverObject *res, HouseID house_id, TileIndex ti
|
||||||
res->grffile = (hs != NULL ? hs->grf_prop.grffile : NULL);
|
res->grffile = (hs != NULL ? hs->grf_prop.grffile : NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16 GetHouseCallback(CallbackID callback, uint32 param1, uint32 param2, HouseID house_id, const Town *town, TileIndex tile, bool not_yet_constructed, uint8 initial_random_bits)
|
uint16 GetHouseCallback(CallbackID callback, uint32 param1, uint32 param2, HouseID house_id, Town *town, TileIndex tile, bool not_yet_constructed, uint8 initial_random_bits)
|
||||||
{
|
{
|
||||||
ResolverObject object;
|
ResolverObject object;
|
||||||
const SpriteGroup *group;
|
const SpriteGroup *group;
|
||||||
|
|
|
@ -44,7 +44,7 @@ void DrawNewHouseTile(TileInfo *ti, HouseID house_id);
|
||||||
void AnimateNewHouseTile(TileIndex tile);
|
void AnimateNewHouseTile(TileIndex tile);
|
||||||
void AnimateNewHouseConstruction(TileIndex tile);
|
void AnimateNewHouseConstruction(TileIndex tile);
|
||||||
|
|
||||||
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);
|
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);
|
||||||
|
|
||||||
bool CanDeleteHouse(TileIndex tile);
|
bool CanDeleteHouse(TileIndex tile);
|
||||||
|
|
||||||
|
|
|
@ -336,7 +336,7 @@ struct ResolverObject {
|
||||||
} station;
|
} station;
|
||||||
struct {
|
struct {
|
||||||
TileIndex tile;
|
TileIndex tile;
|
||||||
const Town *town;
|
Town *town; ///< Town of this house
|
||||||
HouseID house_id;
|
HouseID house_id;
|
||||||
uint16 initial_random_bits; ///< Random bits during construction checks
|
uint16 initial_random_bits; ///< Random bits during construction checks
|
||||||
bool not_yet_constructed; ///< True for construction check
|
bool not_yet_constructed; ///< True for construction check
|
||||||
|
|
Loading…
Reference in New Issue