Fix: Tile slope missing from road stops varact2 variable 0x42

This commit is contained in:
Jonathan G Rennison 2023-10-15 22:35:24 +01:00 committed by rubidium42
parent e1c83869ed
commit 4df2640f87
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ uint32_t RoadStopScopeResolver::GetVariable(byte variable, [[maybe_unused]] uint
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);