equal
deleted
inserted
replaced
494 |
494 |
495 static inline uint32 GetSmallMapOwnerPixels(TileIndex tile) |
495 static inline uint32 GetSmallMapOwnerPixels(TileIndex tile) |
496 { |
496 { |
497 TileType t = GetTileType(tile); |
497 TileType t = GetTileType(tile); |
498 |
498 |
499 if (t == MP_HOUSE || _map_owner[tile] == OWNER_TOWN) { |
499 if (t == MP_INDUSTRY) { |
|
500 t = 0xff; |
|
501 } else if (t == MP_HOUSE || IsTileOwner(tile, OWNER_TOWN)) { |
500 t = 0x80; |
502 t = 0x80; |
501 } else if (t == MP_INDUSTRY) { |
|
502 t = 0xff; |
|
503 } else { |
503 } else { |
504 t = _map_owner[tile]; |
504 t = GetTileOwner(tile); |
505 } |
505 } |
506 |
506 |
507 return _owner_colors[t]; |
507 return _owner_colors[t]; |
508 } |
508 } |
509 |
509 |