Road stops: Add tile slope to varact2 variable 0x42

This commit is contained in:
Jonathan G Rennison
2023-10-15 22:27:28 +01:00
parent b9654985ad
commit 39247b0120
3 changed files with 8 additions and 4 deletions

View File

@@ -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);