From 11a5354e678f616b1781810cc99614d2ff98f77b Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Mon, 8 Jun 2026 10:09:40 +0100 Subject: [PATCH 1/3] convex shape error reading an int in scanf into a bool causes issues, could be the compile options being more strict about inlining and the precompiled headers Also precompiled header for sceneObject since build insights saw it as the most expensive header. --- Engine/source/CMakeLists.txt | 1 + Engine/source/T3D/convexShape.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Engine/source/CMakeLists.txt b/Engine/source/CMakeLists.txt index d19ad8dfa..b5a5acab5 100644 --- a/Engine/source/CMakeLists.txt +++ b/Engine/source/CMakeLists.txt @@ -782,6 +782,7 @@ target_precompile_headers(${TORQUE_APP_NAME} PRIVATE "console/engineObject.h" + "scene/sceneObject.h" ) if(TORQUE_TESTING) diff --git a/Engine/source/T3D/convexShape.cpp b/Engine/source/T3D/convexShape.cpp index 1034c474f..a0b8e0628 100644 --- a/Engine/source/T3D/convexShape.cpp +++ b/Engine/source/T3D/convexShape.cpp @@ -211,7 +211,7 @@ bool ConvexShape::protectedSetSurface( void *object, const char *index, const ch Point2F offset; Point2F scale; F32 rot = 0; - bool horz = true, vert = true; + S32 horz = 0, vert = 0; /* dSscanf( data, "%g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g", From 28f0d523a624e1608ecd2d06ad80d56c3c5ca048 Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Mon, 8 Jun 2026 10:29:25 +0100 Subject: [PATCH 2/3] Update CMakeLists.txt --- Engine/source/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/Engine/source/CMakeLists.txt b/Engine/source/CMakeLists.txt index b5a5acab5..d19ad8dfa 100644 --- a/Engine/source/CMakeLists.txt +++ b/Engine/source/CMakeLists.txt @@ -782,7 +782,6 @@ target_precompile_headers(${TORQUE_APP_NAME} PRIVATE "console/engineObject.h" - "scene/sceneObject.h" ) if(TORQUE_TESTING) From a63ec0d01896a5b77e588843368222a5fe30b1c0 Mon Sep 17 00:00:00 2001 From: marauder2k7 Date: Mon, 8 Jun 2026 21:43:58 +0100 Subject: [PATCH 3/3] Update convexShape.cpp default to true --- Engine/source/T3D/convexShape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/T3D/convexShape.cpp b/Engine/source/T3D/convexShape.cpp index a0b8e0628..7b12949ec 100644 --- a/Engine/source/T3D/convexShape.cpp +++ b/Engine/source/T3D/convexShape.cpp @@ -211,7 +211,7 @@ bool ConvexShape::protectedSetSurface( void *object, const char *index, const ch Point2F offset; Point2F scale; F32 rot = 0; - S32 horz = 0, vert = 0; + S32 horz = 1, vert = 1; /* dSscanf( data, "%g %g %g %g %g %g %g %g %g %g %g %g %g %g %g %g",