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).
This commit is contained in:
parent
90953f26b0
commit
3c3cd55c1b
1 changed files with 4 additions and 4 deletions
|
|
@ -21,7 +21,7 @@ public:
|
|||
std::vector<PathNode*>& Nodes() {
|
||||
return this->nodes;
|
||||
}
|
||||
void Push(PathNode* node);
|
||||
__declspec(noinline) void Push(PathNode* node);
|
||||
|
||||
/* 0000 */ std::vector<PathNode*> 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue