1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Clean up C bits from Testpaint

This commit is contained in:
Gymnasiast
2018-02-01 12:28:50 +01:00
committed by Michael Steenbeek
parent b20ac6157f
commit 36bc1f816c
9 changed files with 49 additions and 86 deletions

View File

@@ -1098,16 +1098,14 @@ private:
}
};
extern "C"
int generatePaintCode(uint8 rideType)
{
int generatePaintCode(uint8 rideType)
if (ride_type_has_flag(rideType, RIDE_TYPE_FLAG_FLAT_RIDE))
{
if (ride_type_has_flag(rideType, RIDE_TYPE_FLAG_FLAT_RIDE))
{
fprintf(stderr, "Flat rides not supported.\n");
}
auto pcg = PaintCodeGenerator();
return pcg.Generate(rideType);
fprintf(stderr, "Flat rides not supported.\n");
}
auto pcg = PaintCodeGenerator();
return pcg.Generate(rideType);
}