1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-11-06 02:45:54 +00:00
This commit is contained in:
Nikolay Korolev 2021-01-23 14:11:57 +03:00
parent 8d0100f100
commit 552497d71b

View file

@ -1763,18 +1763,18 @@ CPathFind::TestCoorsCloseness(CVector target, uint8 type, CVector start)
float dist; float dist;
if(type == PATH_CAR) 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 else
DoPathSearch(type, start, -1, target, nil, &DummyResult2, 0, nil, &dist, 50.0f, -1); DoPathSearch(type, start, -1, target, nil, &DummyResult2, 0, nil, &dist, 50.0f, -1);
#ifdef FIX_BUGS #ifdef FIX_BUGS
// dist has GenerationDistMultiplier as a factor, so our reference dist should have it too // dist has GenerationDistMultiplier as a factor, so our reference dist should have it too
if(type == PATH_CAR) if(type == PATH_CAR)
return dist < 150.0f*TheCamera.GenerationDistMultiplier; return dist < 180.0f*TheCamera.GenerationDistMultiplier;
else else
return dist < 100.0f*TheCamera.GenerationDistMultiplier; return dist < 100.0f*TheCamera.GenerationDistMultiplier;
#else #else
if(type == PATH_CAR) if(type == PATH_CAR)
return dist < 150.0f; return dist < 180.0f;
else else
return dist < 100.0f; return dist < 100.0f;
#endif #endif