diff options
Diffstat (limited to 'smallmap_gui.c')
-rw-r--r-- | smallmap_gui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/smallmap_gui.c b/smallmap_gui.c index 46926c2ce..4a9d2be8f 100644 --- a/smallmap_gui.c +++ b/smallmap_gui.c @@ -496,12 +496,12 @@ static inline uint32 GetSmallMapOwnerPixels(TileIndex tile) { TileType t = GetTileType(tile); - if (t == MP_HOUSE || _map_owner[tile] == OWNER_TOWN) { - t = 0x80; - } else if (t == MP_INDUSTRY) { + if (t == MP_INDUSTRY) { t = 0xff; + } else if (t == MP_HOUSE || IsTileOwner(tile, OWNER_TOWN)) { + t = 0x80; } else { - t = _map_owner[tile]; + t = GetTileOwner(tile); } return _owner_colors[t]; |