From 45629cb3df78db3c6dda67a61e8a56bad55d90d1 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sun, 15 Dec 2024 21:36:26 +0800 Subject: [PATCH] Starter location collection --- src/RandomPlayerbotMgr.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index 1774473b..7ad4a02a 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -1549,7 +1549,7 @@ void RandomPlayerbotMgr::PrepareTeleportCache() if (loc.GetMapId() != checkLoc.GetMapId()) continue; - if (loc.GetExactDist(checkLoc) > 1000.0f) + if (loc.GetExactDist(checkLoc) > 1500.0f) continue; if (zoneId != @@ -1558,6 +1558,8 @@ void RandomPlayerbotMgr::PrepareTeleportCache() counter++; levelLoc = checkLoc; + if (counter >= 15) + break; } if (counter < 15)