Fix #3481: Enable smoothing terrain transitions

This commit is contained in:
Marijn van der Werf 2016-05-03 14:51:07 +02:00
parent 98bff6997e
commit dc920475bc
1 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ typedef struct
} viewport_surface_paint_struct_0;
/**
* rct2: 0x0065E890
* rct2: 0x0065E890, 0x0065E946, 0x0065E9FC, 0x0065EAB2
*/
void viewport_surface_smoothen_edge(enum edge edge, struct tile_descriptor self, struct tile_descriptor neighbour)
{
@ -1034,7 +1034,7 @@ void viewport_surface_paint_setup(uint8 direction, uint16 height, rct_map_elemen
}
tileDescriptors[i + 1].map_element = surfaceElement;
tileDescriptors[i + 1].terrain = ((mapElement->type & MAP_ELEMENT_DIRECTION_MASK) << 3) | (mapElement->properties.surface.terrain >> 5);
tileDescriptors[i + 1].terrain = ((surfaceElement->type & MAP_ELEMENT_DIRECTION_MASK) << 3) | (surfaceElement->properties.surface.terrain >> 5);
uint32 ebx = viewport_surface_paint_setup_get_relative_slope(surfaceElement, get_current_rotation());
tileDescriptors[i + 1].slope = ebx;