1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-29 15:14:33 +01:00

Codechange: (re)set multiple bitset flags in one call. (#14017)

This commit is contained in:
Peter Nelson
2025-04-18 14:07:57 +01:00
committed by GitHub
parent 31e716449d
commit 2c59838acb
10 changed files with 11 additions and 12 deletions

View File

@@ -2308,7 +2308,7 @@ CommandCost RemoveRoadWaypointStop(TileIndex tile, DoCommandFlags flags, int rep
/* if we deleted the whole waypoint, delete the road facility. */
if (wp->road_waypoint_area.tile == INVALID_TILE) {
wp->facilities.Reset(StationFacility::BusStop).Reset(StationFacility::TruckStop);
wp->facilities.Reset({StationFacility::BusStop, StationFacility::TruckStop});
SetWindowWidgetDirty(WC_STATION_VIEW, wp->index, WID_SV_ROADVEHS);
wp->UpdateVirtCoord();
DeleteStationIfEmpty(wp);