diff --git a/docs/newgrf-roadstops-nml.html b/docs/newgrf-roadstops-nml.html index 55fa86572b..fc59a7e754 100644 --- a/docs/newgrf-roadstops-nml.html +++ b/docs/newgrf-roadstops-nml.html @@ -145,6 +145,7 @@ random_bits_tile0..255Random bits (per tile), see also random_bits_station one_way_infoRST_OWI_XXXOne-way road information of drive-through stop tile
XXX = TWO_WAY | WEST_BOUND | EAST_BOUND | NO_ENTRY one_way_info_inferredRST_OWI_XXXInferred one-way road information of drive-through stop tile
XXX = TWO_WAY | WEST_BOUND | EAST_BOUND | NO_ENTRY + drawn_in_gui0 | 11 if this road stop is being drawn in the build window
Variables that require one or more parameters: diff --git a/docs/newgrf-roadstops.html b/docs/newgrf-roadstops.html index 5e7f71ccf6..8b2b148325 100644 --- a/docs/newgrf-roadstops.html +++ b/docs/newgrf-roadstops.html @@ -318,6 +318,10 @@ 3 - No entry
This requires road_stops, version 8. + 4 + 1 if the road stop is being drawn in the build window
+ This requires road_stops, version 9. +
The remaining bits are reserved for future use and should be masked. diff --git a/src/newgrf_extension.cpp b/src/newgrf_extension.cpp index 39f4f5b063..b9746d07b9 100644 --- a/src/newgrf_extension.cpp +++ b/src/newgrf_extension.cpp @@ -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), diff --git a/src/newgrf_roadstop.cpp b/src/newgrf_roadstop.cpp index 35e0b7d243..1b2b4dc8eb 100644 --- a/src/newgrf_roadstop.cpp +++ b/src/newgrf_roadstop.cpp @@ -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; }