mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-27 01:00:13 +00:00
Fix single-player spawn coords and show action bar spell names
This commit is contained in:
parent
6d22f4249f
commit
140a2e2c22
5 changed files with 79 additions and 18 deletions
|
|
@ -589,7 +589,8 @@ std::vector<NpcSpawnDef> NpcManager::loadSpawnDefsFromAzerothCoreDb(
|
|||
float o = std::stof(cols[10]);
|
||||
uint32_t curhealth = static_cast<uint32_t>(std::stoul(cols[14]));
|
||||
|
||||
glm::vec3 canonical = core::coords::serverToCanonical(glm::vec3(sx, sy, sz));
|
||||
// AzerothCore DB uses client/canonical coordinates.
|
||||
glm::vec3 canonical = glm::vec3(sx, sy, sz);
|
||||
float dx = canonical.x - playerCanonical.x;
|
||||
float dy = canonical.y - playerCanonical.y;
|
||||
if (dx * dx + dy * dy > kRadius * kRadius) return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue