mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-26 00:45:35 +00:00
(svn r22151) [1.1] -Backport from trunk:
- Fix: Spectators had crashes when closing buoy windows (r22131) - Fix: Build-station-window showed wrong selection when reopening [FS#4530] (r22128) - Fix: Canals would get drawn as land in the smallmap when using the owner window (r22127) - Fix: The animation-ness of two goldmine tiles were swapped, causing the wheeltower to not work properly, and the bottom corner to show the wrong sprite [FS#4528] (r22125) - Fix: CommandQueue::Pop() did not update 'last'; popping the last item caused the queue to disconnect unless there was only one item [FS#4522] (r22123)
This commit is contained in:
@@ -542,11 +542,10 @@ static inline uint32 GetSmallMapOwnerPixels(TileIndex tile, TileType t)
|
||||
*/
|
||||
}
|
||||
|
||||
if ((o < MAX_COMPANIES && !_legend_land_owners[_company_to_list_pos[o]].show_on_map) || o == OWNER_NONE) {
|
||||
if ((o < MAX_COMPANIES && !_legend_land_owners[_company_to_list_pos[o]].show_on_map) || o == OWNER_NONE || o == OWNER_WATER) {
|
||||
if (t == MP_WATER) return MKCOLOUR(0xCACACACA);
|
||||
const SmallMapColourScheme *cs = &_heightmap_schemes[_settings_client.gui.smallmap_land_colour];
|
||||
return _smallmap_show_heightmap ? cs->height_colours[TileHeight(tile)] : cs->default_colour;
|
||||
} else if (o == OWNER_WATER) {
|
||||
return MKCOLOUR(0xCACACACA);
|
||||
} else if (o == OWNER_TOWN) {
|
||||
return MKCOLOUR(0xB4B4B4B4);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user