From af6e132b37e8b7e89e4c0c7a52e5bb81e4b1b9a8 Mon Sep 17 00:00:00 2001 From: bigbossbro08 Date: Sun, 10 May 2020 19:54:37 +0600 Subject: defined out asserts. --- src/vehicles/Train.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vehicles/Train.h') diff --git a/src/vehicles/Train.h b/src/vehicles/Train.h index bf541250..6fb73169 100644 --- a/src/vehicles/Train.h +++ b/src/vehicles/Train.h @@ -91,4 +91,7 @@ public: float *totalLength, float *totalDuration, CTrainInterpolationLine *interpLines, bool rightRail); static void UpdateTrains(void); }; + +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CTrain) == 0x2E4, "CTrain: error"); +#endif \ No newline at end of file -- cgit v1.2.3 From c798e1bacdaabaf140ff3904948fd7cec46c09bb Mon Sep 17 00:00:00 2001 From: bigbossbro08 Date: Sun, 10 May 2020 21:49:33 +0600 Subject: Fixed typos and made all assert functions optional --- src/vehicles/Train.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/vehicles/Train.h') diff --git a/src/vehicles/Train.h b/src/vehicles/Train.h index 6fb73169..6aa76fa8 100644 --- a/src/vehicles/Train.h +++ b/src/vehicles/Train.h @@ -92,6 +92,4 @@ public: static void UpdateTrains(void); }; -#ifdef CHECK_STRUCT_SIZES -static_assert(sizeof(CTrain) == 0x2E4, "CTrain: error"); -#endif \ No newline at end of file +VALIDATE_SIZE(CTrain, 0x2E4); -- cgit v1.2.3