diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-23 12:11:57 +0100 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2021-01-23 12:11:57 +0100 |
commit | 552497d71b664f7898733afacb38f142caf77eb3 (patch) | |
tree | 9a3a99dab080c023694535cc173d35accece9b50 /src/control/PathFind.cpp | |
parent | Merge remote-tracking branch 'upstream/lcs' into lcs (diff) | |
download | re3-552497d71b664f7898733afacb38f142caf77eb3.tar re3-552497d71b664f7898733afacb38f142caf77eb3.tar.gz re3-552497d71b664f7898733afacb38f142caf77eb3.tar.bz2 re3-552497d71b664f7898733afacb38f142caf77eb3.tar.lz re3-552497d71b664f7898733afacb38f142caf77eb3.tar.xz re3-552497d71b664f7898733afacb38f142caf77eb3.tar.zst re3-552497d71b664f7898733afacb38f142caf77eb3.zip |
Diffstat (limited to 'src/control/PathFind.cpp')
-rw-r--r-- | src/control/PathFind.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/PathFind.cpp b/src/control/PathFind.cpp index cbc29db4..cacddbe1 100644 --- a/src/control/PathFind.cpp +++ b/src/control/PathFind.cpp @@ -1763,18 +1763,18 @@ CPathFind::TestCoorsCloseness(CVector target, uint8 type, CVector start) float dist; if(type == PATH_CAR) - DoPathSearch(type, start, -1, target, pNodeList, &DummyResult, 32, nil, &dist, 999999.88f, -1); + DoPathSearch(type, start, -1, target, pNodeList, &DummyResult, 32, nil, &dist, 170.0f, -1); else DoPathSearch(type, start, -1, target, nil, &DummyResult2, 0, nil, &dist, 50.0f, -1); #ifdef FIX_BUGS // dist has GenerationDistMultiplier as a factor, so our reference dist should have it too if(type == PATH_CAR) - return dist < 150.0f*TheCamera.GenerationDistMultiplier; + return dist < 180.0f*TheCamera.GenerationDistMultiplier; else return dist < 100.0f*TheCamera.GenerationDistMultiplier; #else if(type == PATH_CAR) - return dist < 150.0f; + return dist < 180.0f; else return dist < 100.0f; #endif |