Merge branch 'master' into jgrpp
# Conflicts: # src/game/game_gui.cpp # src/graph_gui.cpp # src/linkgraph/linkgraph_gui.h # src/newgrf.cpp # src/order_gui.cpp # src/saveload/engine_sl.cpp # src/saveload/saveload.h # src/script/api/script_text.cpp # src/script/script_gui.cpp # src/settings_table.cpp # src/strings.cpp # src/table/settings/economy_settings.ini # src/table/settings/locale_settings.ini # src/timetable_gui.cpp
This commit is contained in:
@@ -612,7 +612,7 @@ void LinkGraphOverlay::SetCargoMask(CargoTypes cargo_mask)
|
||||
* Set a new company mask and rebuild the cache.
|
||||
* @param company_mask New company mask.
|
||||
*/
|
||||
void LinkGraphOverlay::SetCompanyMask(uint32 company_mask)
|
||||
void LinkGraphOverlay::SetCompanyMask(CompanyMask company_mask)
|
||||
{
|
||||
this->company_mask = company_mask;
|
||||
this->RebuildCache();
|
||||
@@ -732,7 +732,7 @@ LinkGraphLegendWindow::LinkGraphLegendWindow(WindowDesc *desc, int window_number
|
||||
*/
|
||||
void LinkGraphLegendWindow::SetOverlay(LinkGraphOverlay *overlay) {
|
||||
this->overlay = overlay;
|
||||
uint32 companies = this->overlay->GetCompanyMask();
|
||||
CompanyMask companies = this->overlay->GetCompanyMask();
|
||||
for (uint c = 0; c < MAX_COMPANIES; c++) {
|
||||
if (!this->IsWidgetDisabled(WID_LGL_COMPANY_FIRST + c)) {
|
||||
this->SetWidgetLoweredState(WID_LGL_COMPANY_FIRST + c, HasBit(companies, c));
|
||||
|
Reference in New Issue
Block a user