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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user