diff options
author | rubidium <rubidium@openttd.org> | 2010-08-03 08:09:45 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-03 08:09:45 +0000 |
commit | f44c51577b93faa5efc27a99b2696e08b24f7ca4 (patch) | |
tree | 5d746b7ce00185b4b742af2fbeccd39162ce35c0 /src/unmovable_cmd.cpp | |
parent | 1a9d5ae076fb507cc6056f1da95e1789d2e0b1d9 (diff) | |
download | openttd-f44c51577b93faa5efc27a99b2696e08b24f7ca4.tar.xz |
(svn r20334) -Codechange: reorder the unmovable bits a bit for futher extension
Diffstat (limited to 'src/unmovable_cmd.cpp')
-rw-r--r-- | src/unmovable_cmd.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unmovable_cmd.cpp b/src/unmovable_cmd.cpp index 35bc2f9a8..41249c3ea 100644 --- a/src/unmovable_cmd.cpp +++ b/src/unmovable_cmd.cpp @@ -255,7 +255,8 @@ static void DrawTile_Unmovable(TileInfo *ti) PaletteID palette = COMPANY_SPRITE_COLOUR(GetTileOwner(ti->tile)); - const DrawTileSprites *t = &_unmovable_display_datas[GetCompanyHQSize(ti->tile) << 2 | GetCompanyHQSection(ti->tile)]; + uint8 offset = GetCompanyHQSection(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); if (IsInvisibilitySet(TO_STRUCTURES)) break; |