Repository navigation
Lead the returned point in sub_6FDAB940, not the path target - #248
Open
ResurrectedTrader wants to merge 1 commit into
Open
ResurrectedTrader wants to merge 1 commit into
ResurrectedTrader wants to merge 1 commit into
Conversation
sub_6FDAB940 returns where a path's target unit stands, led along the target's facing by dwSpeed. MOO applied the lead through PATHUtil_AdvanceTowardsTarget_6FDAB890, which moves the path's own tTargetCoord and leaves the returned point unled. 1.10f (D2Common.0x6FDAB940) adds the lead to the output point: esi is the output pointer, "add [esi], ax" at 0x6FDABA33 and "add [esi+2], ax" at 0x6FDABA45. PATHUtil_AdvanceTowardsTarget_6FDAB890 (0x6FDAB890) is the variant that adds to [esi+10h] / [esi+12h]. 1.14d is the same (Game.exe.0x679250). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sub_6FDAB940returns where a path's target unit stands, led along the target's facing by the path'sdwSpeed. MOO applies the lead throughPATHUtil_AdvanceTowardsTarget_6FDAB890, which adds it to the path's owntTargetCoordand returns the unled point. As a result:sub_6FD5DB70) compares against an unled point, and1.10f
The whole of
D2Common.0x6FDAB940.esiis the output point (ecxon entry), and the lead is added there:PATHUtil_AdvanceTowardsTarget_6FDAB890is the other variant. It has the same lead but adds it to the path's target (esi=ptPaththere):1.14d
The same in
DRLGPATH_GetMissileTargetPosition(Game.exe0x679250):Change
Apply the lead to
pOutPathPointinsub_6FDAB940.PATHUtil_AdvanceTowardsTarget_6FDAB890still serves its other caller,PATH_UpdateTargetUnit(at solve time), which does move the path target; that call is unchanged. Not version-gated, since 1.10f and 1.14d agree.🤖 Generated with Claude Code