Road stops: Add bit for whether stop is being drawn in the build window

This commit is contained in:
Jonathan G Rennison
2023-04-02 12:34:01 +01:00
parent c9e62ca29b
commit 706d8f17a3
4 changed files with 8 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ extern const GRFFeatureInfo _grf_feature_list[] = {
GRFFeatureInfo("action0_object_edge_foundation_mode", 2),
GRFFeatureInfo("action0_object_flood_resistant", 1),
GRFFeatureInfo("action0_object_viewport_map_tile_type", 1),
GRFFeatureInfo("road_stops", 8),
GRFFeatureInfo("road_stops", 9),
GRFFeatureInfo("new_landscape", 2),
GRFFeatureInfo("more_objects_per_grf", 1, GFTOF_MORE_OBJECTS_PER_GRF),
GRFFeatureInfo("more_action2_ids", 1, GFTOF_MORE_ACTION2_IDS),

View File

@@ -164,6 +164,8 @@ uint32 RoadStopScopeResolver::GetVariable(uint16 variable, uint32 parameter, Get
RoadCachedOneWayState rcows = GetRoadCachedOneWayState(this->tile);
if (rcows <= RCOWS_NO_ACCESS) result |= (rcows << 2);
}
} else {
SetBit(result, 4);
}
return result;
}