mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Starter location collection
This commit is contained in:
@@ -1549,7 +1549,7 @@ void RandomPlayerbotMgr::PrepareTeleportCache()
|
|||||||
if (loc.GetMapId() != checkLoc.GetMapId())
|
if (loc.GetMapId() != checkLoc.GetMapId())
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (loc.GetExactDist(checkLoc) > 1000.0f)
|
if (loc.GetExactDist(checkLoc) > 1500.0f)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (zoneId !=
|
if (zoneId !=
|
||||||
@@ -1558,6 +1558,8 @@ void RandomPlayerbotMgr::PrepareTeleportCache()
|
|||||||
|
|
||||||
counter++;
|
counter++;
|
||||||
levelLoc = checkLoc;
|
levelLoc = checkLoc;
|
||||||
|
if (counter >= 15)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (counter < 15)
|
if (counter < 15)
|
||||||
|
|||||||
Reference in New Issue
Block a user