From 3c3cd55c1befbfa0322a872928d54aab4c9910e4 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 4 Nov 2026 22:44:56 +0000 Subject: [PATCH] Confirm 2 functions in Source/Contents/TerrainPathSearch.cpp, Source/Contents/TerrainPathSearch.h Batch #10904 by kyoshi: 0 byte-identical, 2 confirmed by peer review. - fn_17868 CPathFinder::FindPath: logic confirmed by peer review (already on main) - fn_17882 CPathFinder::AddNeighbor: logic confirmed by peer review (already on main) Peer-reviewed-by: Yommy, cremane, StrawberrysherbetIX Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/TerrainPathSearch.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Contents/TerrainPathSearch.h b/Source/Contents/TerrainPathSearch.h index b3a92d909..3d3f1b1f4 100644 --- a/Source/Contents/TerrainPathSearch.h +++ b/Source/Contents/TerrainPathSearch.h @@ -21,7 +21,7 @@ public: std::vector& Nodes() { return this->nodes; } - void Push(PathNode* node); + __declspec(noinline) void Push(PathNode* node); /* 0000 */ std::vector nodes; }; @@ -43,11 +43,11 @@ public: /* 1098 */ CPriorityQueue openList; void Clear(); - void Reset(); + __declspec(noinline) void Reset(); bool CanMove(int startX, int startY, int targetX, int targetY, char flag) const; bool Walkable(int column, int row) const; - PathNode* FindOrCreateNode(int x, int y); - bool AddNeighbor(PathNode* current, int cost, int nextX, int nextY, int metadata); + __declspec(noinline) PathNode* FindOrCreateNode(int x, int y); + __declspec(noinline) bool AddNeighbor(PathNode* current, int cost, int nextX, int nextY, int metadata); bool FindPath( int startTick, int startX, int startY, int currentFractionX, int currentFractionY, int destX, int destY, int speed, MovementRouteInterpolation& route, char flag