Road stops: Add tile slope to varact2 variable 0x42
This commit is contained in:
@@ -62,7 +62,7 @@ extern const GRFFeatureInfo _grf_feature_list[] = {
|
||||
GRFFeatureInfo("action0_object_flood_resistant", 1),
|
||||
GRFFeatureInfo("action0_object_viewport_map_tile_type", 1),
|
||||
GRFFeatureInfo("varaction2_airporttiles_airport_info", 1),
|
||||
GRFFeatureInfo("road_stops", 9, GFTOF_ROAD_STOPS),
|
||||
GRFFeatureInfo("road_stops", 10, GFTOF_ROAD_STOPS),
|
||||
GRFFeatureInfo("new_landscape", 2),
|
||||
GRFFeatureInfo("more_objects_per_grf", 1),
|
||||
GRFFeatureInfo("more_action2_ids", 1, GFTOF_MORE_ACTION2_IDS),
|
||||
|
||||
@@ -130,7 +130,7 @@ uint32 RoadStopScopeResolver::GetVariable(uint16 variable, uint32 parameter, Get
|
||||
return 2;
|
||||
|
||||
/* Terrain type */
|
||||
case 0x42: return this->tile == INVALID_TILE ? 0 : GetTerrainType(this->tile, TCX_NORMAL); // terrain_type
|
||||
case 0x42: return this->tile == INVALID_TILE ? 0 : (GetTileSlope(this->tile) << 8 | GetTerrainType(this->tile, TCX_NORMAL));
|
||||
|
||||
/* Road type */
|
||||
case 0x43: return get_road_type_variable(RTT_ROAD);
|
||||
|
||||
Reference in New Issue
Block a user