(svn r22923) -Codechange: Move application of the construction stage into TileLayoutSpriteGroup::ProcessRegisters().

This commit is contained in:
frosch
2011-09-11 15:09:13 +00:00
parent b4d7919f8a
commit de27360549
5 changed files with 20 additions and 21 deletions

View File

@@ -236,6 +236,7 @@ const SpriteGroup *RealSpriteGroup::Resolve(ResolverObject *object) const
*/
const DrawTileSprites *TileLayoutSpriteGroup::ProcessRegisters(uint8 *stage) const
{
if (stage != NULL) *stage = GetConstructionStageOffset(*stage, this->num_building_stages);
if (!this->dts.NeedsPreprocessing()) return &this->dts;
static DrawTileSprites result;