mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Fix build
This commit is contained in:
@@ -170,6 +170,7 @@ typedef struct paint_session
|
||||
tunnel_entry RightTunnels[TUNNEL_MAX_COUNT];
|
||||
uint8 RightTunnelCount;
|
||||
uint8 VerticalTunnelHeight;
|
||||
rct_tile_element * SurfaceElement;
|
||||
rct_tile_element * PathElementOnSameHeight;
|
||||
rct_tile_element * TrackElementOnSameHeight;
|
||||
bool DidPassSurface;
|
||||
|
||||
@@ -250,13 +250,13 @@ static void sub_68B3FB(paint_session * session, sint32 x, sint32 y)
|
||||
session->PathElementOnSameHeight = 0;
|
||||
session->TrackElementOnSameHeight = 0;
|
||||
rct_tile_element * tile_element_sub_iterator = tile_element;
|
||||
while (!map_element_is_last_for_tile(tile_element_sub_iterator++))
|
||||
while (!tile_element_is_last_for_tile(tile_element_sub_iterator++))
|
||||
{
|
||||
if (tile_element_sub_iterator->base_height != tile_element->base_height)
|
||||
{
|
||||
break;
|
||||
}
|
||||
switch (map_element_get_type(tile_element_sub_iterator))
|
||||
switch (tile_element_get_type(tile_element_sub_iterator))
|
||||
{
|
||||
case TILE_ELEMENT_TYPE_PATH:
|
||||
session->PathElementOnSameHeight = tile_element_sub_iterator;
|
||||
|
||||
@@ -558,7 +558,7 @@ static uint32 miniature_railway_track_to_grooved(uint32 imageId)
|
||||
return imageId - SPR_MINIATURE_RAILWAY_FLAT_SW_NE + SPR_G2_MINIATURE_RAILWAY_GROOVED_SW_NE;
|
||||
}
|
||||
|
||||
static uint32 miniature_railway_track_to_grooved_indent(uint32 imageId, rct_map_element *path, uint8 direction)
|
||||
static uint32 miniature_railway_track_to_grooved_indent(uint32 imageId, rct_tile_element *path, uint8 direction)
|
||||
{
|
||||
if (!path)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user