From 67cfa2db537c6b2998e0219f724e024a3ee0c02a Mon Sep 17 00:00:00 2001 From: PedroTiago23 Date: Wed, 14 Oct 2026 12:37:17 -0300 Subject: [PATCH 1/2] bugfix(pathfinder): include PreRTS.h in pathfinding sources --- Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathNode.cpp | 1 + .../Source/GameLogic/AI/Pathfinder/PathfindCellInfo.cpp | 1 + .../Source/GameLogic/AI/Pathfinder/PathfindCellList.cpp | 1 + .../Source/GameLogic/AI/Pathfinder/PathfindConstants.cpp | 1 + .../Source/GameLogic/AI/Pathfinder/PathfindZoneManager.cpp | 1 + Core/GameEngine/Source/GameLogic/AI/Pathfinder/ZoneBlock.cpp | 1 + 6 files changed, 6 insertions(+) diff --git a/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathNode.cpp b/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathNode.cpp index a0ec8bcb4a4..aaea3aea1bc 100644 --- a/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathNode.cpp +++ b/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathNode.cpp @@ -16,6 +16,7 @@ ** along with this program. If not, see . */ +#include "PreRTS.h" #include "GameLogic/Pathfinder/PathNode.h" PathNode::PathNode() : diff --git a/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindCellInfo.cpp b/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindCellInfo.cpp index c1541f8fcc1..ef89ba02196 100644 --- a/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindCellInfo.cpp +++ b/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindCellInfo.cpp @@ -16,6 +16,7 @@ ** along with this program. If not, see . */ +#include "PreRTS.h" #include "GameLogic/Pathfinder/PathfindCellInfo.h" constexpr const UnsignedInt CELL_INFOS_TO_ALLOCATE = 30000; diff --git a/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindCellList.cpp b/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindCellList.cpp index 4be96d3b39e..1adb4818ba8 100644 --- a/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindCellList.cpp +++ b/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindCellList.cpp @@ -16,6 +16,7 @@ ** along with this program. If not, see . */ +#include "PreRTS.h" #include "GameLogic/Pathfinder/PathfindCell.h" #include "GameLogic/Pathfinder/PathfindCellList.h" diff --git a/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindConstants.cpp b/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindConstants.cpp index b9b95d9b30e..480d22861b6 100644 --- a/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindConstants.cpp +++ b/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindConstants.cpp @@ -16,6 +16,7 @@ ** along with this program. If not, see . */ +#include "PreRTS.h" #include "GameLogic/Pathfinder/PathfindConstants.h" #if RETAIL_COMPATIBLE_PATHFINDING diff --git a/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindZoneManager.cpp b/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindZoneManager.cpp index 82c2e4ef306..4d4541d36b6 100644 --- a/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindZoneManager.cpp +++ b/Core/GameEngine/Source/GameLogic/AI/Pathfinder/PathfindZoneManager.cpp @@ -16,6 +16,7 @@ ** along with this program. If not, see . */ +#include "PreRTS.h" #include "GameLogic/Pathfinder/PathfindCell.h" #include "GameLogic/Pathfinder/PathfindConstants.h" #include "GameLogic/Pathfinder/PathfindLayer.h" diff --git a/Core/GameEngine/Source/GameLogic/AI/Pathfinder/ZoneBlock.cpp b/Core/GameEngine/Source/GameLogic/AI/Pathfinder/ZoneBlock.cpp index 7777bfd96c2..d99e5a75df5 100644 --- a/Core/GameEngine/Source/GameLogic/AI/Pathfinder/ZoneBlock.cpp +++ b/Core/GameEngine/Source/GameLogic/AI/Pathfinder/ZoneBlock.cpp @@ -16,6 +16,7 @@ ** along with this program. If not, see . */ +#include "PreRTS.h" #include "GameLogic/Pathfinder/PathfindCell.h" #include "GameLogic/Pathfinder/PathfindZoneManager.h" #include "GameLogic/Pathfinder/ZoneBlock.h" From 8220c34de0a124f20bbc72fcebad1cf0aac17191 Mon Sep 17 00:00:00 2001 From: PedroTiago23 Date: Thu, 15 Oct 2026 07:53:58 -0300 Subject: [PATCH 2/2] fix(pathfinder): correct header dependencies --- Core/Libraries/Source/Lib/Include/Lib/ICoord2D.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/Libraries/Source/Lib/Include/Lib/ICoord2D.h b/Core/Libraries/Source/Lib/Include/Lib/ICoord2D.h index 754412a343c..5bccee86780 100644 --- a/Core/Libraries/Source/Lib/Include/Lib/ICoord2D.h +++ b/Core/Libraries/Source/Lib/Include/Lib/ICoord2D.h @@ -18,6 +18,8 @@ #pragma once +#include "trig.h" + // NOTE: Keep the types simple; avoid constructors and destructors so they can be used within unions struct ICoord2D