diff options
author | Giacomo Pozzoni <giacomopoz@gmail.com> | 2020-01-09 19:38:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 19:38:45 +0100 |
commit | 29bf280e3496cf13c24ccb20e37da29d3bfa74d9 (patch) | |
tree | 06d03127439ac2f050aee937ef89f4d3944eb4c9 /dep/utf8cpp/utf8/core.h | |
parent | 43b247e17e8f5df4eda74578499f5a9758c3852b (diff) |
Core/PathGenerator: Fix path generator returning shortcuts when start and end are on the same polygon (#24036)
* Core/PathGenerator: Fix path generator returning shortcuts when start and end are on the same polygon
Fix path generator returning shortcuts when start and end are on the same polygon by handling this case as if start and end were on 2 different polygons. This will ensure BuildPointPath() gets called which calls FindSmoothPath(), making sure each step is not longer than SMOOTH_PATH_STEP_SIZE (4 yards)
* Change ingame cast error message to SPELL_FAILED_NOPATH from SPELL_FAILED_OUT_OF_RANGE if the generated path is too long
Diffstat (limited to 'dep/utf8cpp/utf8/core.h')
0 files changed, 0 insertions, 0 deletions