diff options
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r-- | src/unmovable_cmd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp index 41249c3ea..697197beb 100644 --- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -46,6 +46,9 @@ return UnmovableSpec::Get(GetUnmovableType(tile)); } +/** We encode the company HQ size in the animation stage. */ +#define GetCompanyHQSize GetUnmovableAnimationStage + /** * Destroy a HQ. * During normal gameplay you can only implicitely destroy a HQ when you are @@ -255,7 +258,7 @@ static void DrawTile_Unmovable(TileInfo *ti) PaletteID palette = COMPANY_SPRITE_COLOUR(GetTileOwner(ti->tile)); - uint8 offset = GetCompanyHQSection(ti->tile); + uint8 offset = GetUnmovableOffset(ti->tile); const DrawTileSprites *t = &_unmovable_display_datas[GetCompanyHQSize(ti->tile) << 2 | GB(offset, 4, 1) << 1 | GB(offset, 0, 1)]; DrawGroundSprite(t->ground.sprite, palette); |