diff options
author | frosch <frosch@openttd.org> | 2011-09-11 15:09:13 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-09-11 15:09:13 +0000 |
commit | de27360549ec0afcc5090369cf05cfeafeda5868 (patch) | |
tree | beff25700a4261b74ac951c1c9a8d6c070c3248b /src/newgrf_spritegroup.cpp | |
parent | b4d7919f8ad3bc5b079422d392d15123d8880b3b (diff) | |
download | openttd-de27360549ec0afcc5090369cf05cfeafeda5868.tar.xz |
(svn r22923) -Codechange: Move application of the construction stage into TileLayoutSpriteGroup::ProcessRegisters().
Diffstat (limited to 'src/newgrf_spritegroup.cpp')
-rw-r--r-- | src/newgrf_spritegroup.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/newgrf_spritegroup.cpp b/src/newgrf_spritegroup.cpp index 387366352..80b58c273 100644 --- a/src/newgrf_spritegroup.cpp +++ b/src/newgrf_spritegroup.cpp @@ -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; |