smallmap_gui.c
changeset 1901 fb05044cf5c3
parent 1891 92a3b0aa0946
child 1918 68d78ef6833d
equal deleted inserted replaced
1900:f409d5517cb0 1901:fb05044cf5c3
   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