[Random bots] Fix banker position out-of-bounds

This commit is contained in:
Yunfan Li
2024-06-23 12:31:40 +08:00
parent 1428436b6a
commit 036638e110

View File

@@ -1347,7 +1347,7 @@ void RandomPlayerbotMgr::PrepareTeleportCache()
float z = fields[3].Get<float>(); float z = fields[3].Get<float>();
float orient = fields[4].Get<float>(); float orient = fields[4].Get<float>();
uint32 level = fields[5].Get<uint32>(); uint32 level = fields[5].Get<uint32>();
WorldLocation loc(mapId, x + cos(orient) * 10.0f, y + sin(orient) * 10.0f, z, orient + M_PI); WorldLocation loc(mapId, x + cos(orient) * 6.0f, y + sin(orient) * 6.0f, z + 2.0f, orient + M_PI);
collected_locs++; collected_locs++;
for (int32 l = 1; l <= maxLevel; l++) { for (int32 l = 1; l <= maxLevel; l++) {
if (l <= 60 && level >= 60) { if (l <= 60 && level >= 60) {