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/Cranes.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vehicles/Cranes.h') diff --git a/src/vehicles/Cranes.h b/src/vehicles/Cranes.h index c0502638..4d4c8fb4 100644 --- a/src/vehicles/Cranes.h +++ b/src/vehicles/Cranes.h @@ -72,7 +72,9 @@ public: float GetHeightToDropoffHeight() { return m_fDropoffHeight + (m_bIsCrusher ? 7.0f : 2.0f); } }; +#ifdef CHECK_STRUCT_SIZES static_assert(sizeof(CCrane) == 128, "CCrane: error"); +#endif class CCranes { -- 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/Cranes.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/vehicles/Cranes.h') diff --git a/src/vehicles/Cranes.h b/src/vehicles/Cranes.h index 4d4c8fb4..6d877d82 100644 --- a/src/vehicles/Cranes.h +++ b/src/vehicles/Cranes.h @@ -72,9 +72,7 @@ public: float GetHeightToDropoffHeight() { return m_fDropoffHeight + (m_bIsCrusher ? 7.0f : 2.0f); } }; -#ifdef CHECK_STRUCT_SIZES -static_assert(sizeof(CCrane) == 128, "CCrane: error"); -#endif +VALIDATE_SIZE(CCrane, 128); class CCranes { -- cgit v1.2.3