From 036638e110b3081fa2d16f3e226f259e8c9e1202 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Sun, 23 Jun 2024 12:31:40 +0800 Subject: [PATCH] [Random bots] Fix banker position out-of-bounds --- src/RandomPlayerbotMgr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index a2c96a62..fd30576a 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -1347,7 +1347,7 @@ void RandomPlayerbotMgr::PrepareTeleportCache() float z = fields[3].Get(); float orient = fields[4].Get(); uint32 level = fields[5].Get(); - 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++; for (int32 l = 1; l <= maxLevel; l++) { if (l <= 60 && level >= 60) {