mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Fixes for testpaint on Linux
This commit is contained in:
committed by
Marijn van der Werf
parent
f13e5c9e3a
commit
eed46dc367
@@ -28,5 +28,8 @@ int getTrackSequenceCount(uint8 rideType, uint8 trackType);
|
|||||||
bool rideIsImplemented(int rideType);
|
bool rideIsImplemented(int rideType);
|
||||||
bool rideSupportsTrackType(int rideType, int trackType);
|
bool rideSupportsTrackType(int rideType, int trackType);
|
||||||
bool testTrackPainting(int rideType, int trackType);
|
bool testTrackPainting(int rideType, int trackType);
|
||||||
|
bool testSupportSegments(uint8 rideType, uint8 trackType);
|
||||||
|
bool testTunnels(uint8 rideType, uint8 trackType);
|
||||||
|
bool testVerticalTunnels(uint8 rideType, uint8 trackType);
|
||||||
|
|
||||||
#endif // #endif _TEST_PAINT_INTERCEPT_H_
|
#endif // #endif _TEST_PAINT_INTERCEPT_H_
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <algorithm>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include "intercept.h"
|
#include "intercept.h"
|
||||||
@@ -58,7 +59,7 @@ namespace Intercept2
|
|||||||
uint8 type;
|
uint8 type;
|
||||||
};
|
};
|
||||||
|
|
||||||
bool SortSegmentSupportCalls(SegmentSupportCall lhs, SegmentSupportCall rhs)
|
static bool SortSegmentSupportCalls(SegmentSupportCall lhs, SegmentSupportCall rhs)
|
||||||
{
|
{
|
||||||
if (lhs.height != rhs.height) {
|
if (lhs.height != rhs.height) {
|
||||||
return lhs.height < rhs.height;
|
return lhs.height < rhs.height;
|
||||||
@@ -635,7 +636,7 @@ namespace Intercept2
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (height < 0) {
|
if (height < 0) {
|
||||||
sprintf(out, "height - %d", abs(height));
|
sprintf(out, "height - %d", int(abs(height)));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user