From eed46dc367afda36b63f401d0fd5e5ee412671e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Fri, 9 Sep 2016 21:49:53 +0200 Subject: [PATCH] Fixes for testpaint on Linux --- test/testpaint/intercept.h | 3 +++ test/testpaint/intercept_2.cpp | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/testpaint/intercept.h b/test/testpaint/intercept.h index 7971e733c2..3d008443e7 100644 --- a/test/testpaint/intercept.h +++ b/test/testpaint/intercept.h @@ -28,5 +28,8 @@ int getTrackSequenceCount(uint8 rideType, uint8 trackType); bool rideIsImplemented(int rideType); bool rideSupportsTrackType(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_ diff --git a/test/testpaint/intercept_2.cpp b/test/testpaint/intercept_2.cpp index 72727d5b10..5a7fd268e3 100644 --- a/test/testpaint/intercept_2.cpp +++ b/test/testpaint/intercept_2.cpp @@ -15,6 +15,7 @@ #pragma endregion #include +#include extern "C" { #include "intercept.h" @@ -58,7 +59,7 @@ namespace Intercept2 uint8 type; }; - bool SortSegmentSupportCalls(SegmentSupportCall lhs, SegmentSupportCall rhs) + static bool SortSegmentSupportCalls(SegmentSupportCall lhs, SegmentSupportCall rhs) { if (lhs.height != rhs.height) { return lhs.height < rhs.height; @@ -635,7 +636,7 @@ namespace Intercept2 } if (height < 0) { - sprintf(out, "height - %d", abs(height)); + sprintf(out, "height - %d", int(abs(height))); return; } }