Fix compilation errors

This commit is contained in:
dP
2024-02-06 20:35:28 +05:30
parent b2cf3c48fb
commit cdd69a496d
68 changed files with 1194 additions and 1211 deletions

View File

@@ -640,7 +640,7 @@ static inline uint32 CM_GetSmallMapIMBAPixels(TileIndex tile, TileType t)
}
// if (IsClearGround(tile, CLEAR_SNOW))
// return _vegetation_clear_bits[GetClearGround(tile)];
FALLTHROUGH;
[[fallthrough]];
default:
const SmallMapColourScheme *cs = &_heightmap_schemes[_settings_client.gui.smallmap_land_colour];
@@ -662,6 +662,7 @@ enum SmallMapType : byte {
SMT_ROUTES,
SMT_VEGETATION,
SMT_OWNER,
CM_SMT_IMBA,
};
DECLARE_ENUM_AS_ADDABLE(SmallMapType)
@@ -2088,6 +2089,6 @@ bool ScrollMainWindowTo(int x, int y, int z, bool instant)
*/
Point GetSmallMapStationMiddle(const Window *w, const Station *st)
{
TODO fix (this line was changed)
return static_cast<const SmallMapWindow *>(w)->GetStationMiddle(st);
// return static_cast<const SmallMapWindow *>(w)->GetStationMiddle(st);
return static_cast<const citymania::SmallMapWindow *>(w)->GetStationMiddle(st);
}