mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix compile errors in TestPaint project
This commit is contained in:
parent
6e176e725c
commit
dc297e90c0
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ namespace Utils
|
|||
return false;
|
||||
}
|
||||
|
||||
if (newPaintGetter(trackType, 0) == nullptr)
|
||||
if (newPaintGetter(trackType) == nullptr)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue