Changeset - r28003:c5cd3e96ecce
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 14 months ago 2023-10-15 21:35:24
j.g.rennison@gmail.com
Fix: Tile slope missing from road stops varact2 variable 0x42
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_roadstop.cpp
Show inline comments
 
@@ -90,7 +90,7 @@ uint32_t RoadStopScopeResolver::GetVaria
 
			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);
0 comments (0 inline, 0 general)