Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rtri
committed
Dec 3, 2016
1 parent
ae0ef2f
commit e41d9be
Showing
1 changed file
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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
e41d9be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe instead of scaling by an arbitrary number, scale by the highest known speed modifier?
e41d9be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's what I switched to a few commits after this one.
e41d9be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great minds etc. :P
e41d9be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
although, wouldn't you want to add the multiplier here as well?
spring/rts/Sim/Path/Default/PathFinder.cpp
Line 262 in 4460dca
e41d9be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or here:
spring/rts/Sim/Path/Default/PathManager.cpp
Line 119 in 4460dca
e41d9be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
first case: technically yes, but the PF is used over such short distances that suboptimal paths should not be a problem (famous last words).
making
heurGoalDist2D
smaller will engage the higher-res layers more often, could be risky.e41d9be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair enough
e41d9be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm daft, ignore
e41d9be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's an inverse scaling, the heuristic multiplier is
1 / max_speedmod