Fix compile errors in TestPaint project

This commit is contained in:
Richard Fine 2020-09-07 22:42:42 -04:00
parent 6e176e725c
commit dc297e90c0
3 changed files with 3 additions and 3 deletions

View File

@ -457,7 +457,7 @@ bool TrackElement::IsHighlighted() const
uint8_t PathElement::GetEdges() const
{
return Edges & 0xF;
return EdgesAndCorners & 0xF;
}
StationObject* ride_get_station_object(const Ride* ride)

View File

@ -194,7 +194,7 @@ static void CallNew(
uint8_t rideType, uint8_t trackType, uint8_t direction, uint8_t trackSequence, uint16_t height, TileElement* tileElement)
{
TRACK_PAINT_FUNCTION_GETTER newPaintFunctionGetter = RideTypeDescriptors[rideType].TrackPaintFunction;
TRACK_PAINT_FUNCTION newPaintFunction = newPaintFunctionGetter(trackType, direction);
TRACK_PAINT_FUNCTION newPaintFunction = newPaintFunctionGetter(trackType);
newPaintFunction(&gPaintSession, 0, trackSequence, direction, height, tileElement);
}

View File

@ -54,7 +54,7 @@ namespace Utils
return false;
}
if (newPaintGetter(trackType, 0) == nullptr)
if (newPaintGetter(trackType) == nullptr)
{
return false;
}