diff options
author | rubidium <rubidium@openttd.org> | 2010-08-10 15:49:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-10 15:49:35 +0000 |
commit | ca7a067b7a57578e05cefec1ef647a67a9b5be07 (patch) | |
tree | 2ddc3cc481a332a28f072dda0af921ad0b69799b /src/newgrf_industries.cpp | |
parent | 21e4e7ce0699408fd2d4f1e1d1c97ccfd0fa74bc (diff) | |
download | openttd-ca7a067b7a57578e05cefec1ef647a67a9b5be07.tar.xz |
(svn r20435) -Codechange: move spritegroup to GRFFilePropsBase and prepare it for more spritegroups
Diffstat (limited to 'src/newgrf_industries.cpp')
-rw-r--r-- | src/newgrf_industries.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_industries.cpp b/src/newgrf_industries.cpp index fc8c8bbef..732d865eb 100644 --- a/src/newgrf_industries.cpp +++ b/src/newgrf_industries.cpp @@ -397,7 +397,7 @@ uint16 GetIndustryCallback(CallbackID callback, uint32 param1, uint32 param2, In object.callback_param1 = param1; object.callback_param2 = param2; - group = SpriteGroup::Resolve(GetIndustrySpec(type)->grf_prop.spritegroup, &object); + group = SpriteGroup::Resolve(GetIndustrySpec(type)->grf_prop.spritegroup[0], &object); if (group == NULL) return CALLBACK_FAILED; return group->GetCallbackResult(); @@ -483,7 +483,7 @@ CommandCost CheckIfCallBackAllowsCreation(TileIndex tile, IndustryType type, uin object.callback = CBID_INDUSTRY_LOCATION; _industry_creation_random_bits = seed; - group = SpriteGroup::Resolve(GetIndustrySpec(type)->grf_prop.spritegroup, &object); + group = SpriteGroup::Resolve(GetIndustrySpec(type)->grf_prop.spritegroup[0], &object); /* Unlike the "normal" cases, not having a valid result means we allow * the building of the industry, as that's how it's done in TTDP. */ @@ -552,7 +552,7 @@ void IndustryProductionCallback(Industry *ind, int reason) } SB(object.callback_param2, 8, 16, loop); - const SpriteGroup *tgroup = SpriteGroup::Resolve(spec->grf_prop.spritegroup, &object); + const SpriteGroup *tgroup = SpriteGroup::Resolve(spec->grf_prop.spritegroup[0], &object); if (tgroup == NULL || tgroup->type != SGT_INDUSTRY_PRODUCTION) break; const IndustryProductionSpriteGroup *group = (const IndustryProductionSpriteGroup *)tgroup; |