bugfix(pathfinder): Restore retail compatibility after crash fix changes to Pathfinder::findAttackPath - #3289
Conversation
… fix changes to Pathfinder::findAttackPath.
PR Summary by QodoRestore Generals retail-compatible attack path cleanup
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can start a comment with 'qodo' or '@qodo' to chat about any finding |
|
| Filename | Overview |
|---|---|
| Core/GameEngine/Source/GameLogic/AI/AIPathfind.cpp | Adds the missing Generals-only parent-cell information release to the retail-compatible attack-path success branch. |
Reviews (1): Last reviewed commit: "bugfix(pathfinder): Restore Generals ret..." | Re-trigger Greptile
Mauller
left a comment
There was a problem hiding this comment.
Is good, already gone over this with @Caball009
#994 introduced a minor Generals specific mistake that causes some replays to mismatch. Here's one such replay: replay.zip
Original code:
GeneralsGameCode/Generals/Code/GameEngine/Source/GameLogic/AI/AIPathfind.cpp
Lines 10079 to 10084 in 783bdb7
GeneralsGameCode/GeneralsMD/Code/GameEngine/Source/GameLogic/AI/AIPathfind.cpp
Lines 10787 to 10791 in 783bdb7
Notice how only the Generals code contains
parentCell->releaseInfo().Current code:
GeneralsGameCode/Core/GameEngine/Source/GameLogic/AI/AIPathfind.cpp
Lines 11021 to 11030 in a2cffe4
The current (retail compatible) code doesn't have
parentCell->releaseInfo(), even though it should for Generals.