summaryrefslogtreecommitdiff
path: root/src/unmovable_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-03 08:16:06 +0000
committerrubidium <rubidium@openttd.org>2010-08-03 08:16:06 +0000
commitffedcc6533439009c890e513ed60ed02574d2a69 (patch)
treee424dfe53f735e68ca26b9f9ffaa3803b81df889 /src/unmovable_cmd.cpp
parentf44c51577b93faa5efc27a99b2696e08b24f7ca4 (diff)
downloadopenttd-ffedcc6533439009c890e513ed60ed02574d2a69.tar.xz
(svn r20335) -Codechange: change the name of some unmovable map accessors
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r--src/unmovable_cmd.cpp5
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);