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

@@ -186,7 +186,7 @@ public:
td.road_speed = 0;
td.tramtype = STR_NULL;
td.tram_speed = 0;
td.population = 0;
td.cm_population = 0;
td.grf = nullptr;
@@ -324,11 +324,12 @@ public:
this->landinfo_data.push_back(GetString(STR_LAND_AREA_INFORMATION_NEWGRF_NAME));
}
/* House pop */
if (td.population != 0) {
SetDParam(0, td.population);
/* CityMania code start (House pop) */
if (td.cm_population != 0) {
SetDParam(0, td.cm_population);
this->landinfo_data.push_back(GetString(CM_STR_LAND_AREA_INFORMATION_POP));
}
/* CityMania code end */
/* Cargo acceptance is displayed in a extra multiline */
std::stringstream line;
@@ -1288,6 +1289,6 @@ void GuiPrepareTooltipsExtra(Window *parent){
}
citymania::ShowLandInfo(INVALID_TILE);
if (tile >= MapSize()) tile = INVALID_TILE;
if (tile >= Map::Size()) tile = INVALID_TILE;
citymania::ShowLandTooltips(tile, parent);
}