Merge branch 'master' into jgrpp
# Conflicts: # src/blitter/32bpp_anim.cpp # src/blitter/32bpp_anim.hpp # src/blitter/32bpp_anim_sse2.cpp # src/blitter/32bpp_base.cpp # src/blitter/32bpp_base.hpp # src/ground_vehicle.cpp # src/linkgraph/linkgraph_gui.h # src/main_gui.cpp # src/newgrf_house.cpp # src/newgrf_house.h # src/town_cmd.cpp # src/vehicle_base.h # src/viewport_gui.cppp
This commit is contained in:
@@ -386,7 +386,7 @@ Point LinkGraphOverlay::GetStationMiddle(const Station *st) const
|
||||
* Set a new cargo mask and rebuild the cache.
|
||||
* @param cargo_mask New cargo mask.
|
||||
*/
|
||||
void LinkGraphOverlay::SetCargoMask(uint32 cargo_mask)
|
||||
void LinkGraphOverlay::SetCargoMask(CargoTypes cargo_mask)
|
||||
{
|
||||
this->cargo_mask = cargo_mask;
|
||||
this->RebuildCache();
|
||||
@@ -523,7 +523,7 @@ void LinkGraphLegendWindow::SetOverlay(LinkGraphOverlay *overlay) {
|
||||
this->SetWidgetLoweredState(WID_LGL_COMPANY_FIRST + c, HasBit(companies, c));
|
||||
}
|
||||
}
|
||||
uint32 cargoes = this->overlay->GetCargoMask();
|
||||
CargoTypes cargoes = this->overlay->GetCargoMask();
|
||||
for (uint c = 0; c < NUM_CARGO; c++) {
|
||||
if (!this->IsWidgetDisabled(WID_LGL_CARGO_FIRST + c)) {
|
||||
this->SetWidgetLoweredState(WID_LGL_CARGO_FIRST + c, HasBit(cargoes, c));
|
||||
@@ -629,7 +629,7 @@ void LinkGraphLegendWindow::UpdateOverlayCompanies()
|
||||
*/
|
||||
void LinkGraphLegendWindow::UpdateOverlayCargoes()
|
||||
{
|
||||
uint32 mask = 0;
|
||||
CargoTypes mask = 0;
|
||||
for (uint c = 0; c < NUM_CARGO; c++) {
|
||||
if (this->IsWidgetDisabled(c + WID_LGL_CARGO_FIRST)) continue;
|
||||
if (!this->IsWidgetLowered(c + WID_LGL_CARGO_FIRST)) continue;
|
||||
|
Reference in New Issue
Block a user