mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-21 06:37:57 -04:00
Fix tunnel camera, dismount buff clear, and ground sampling
Use WMO-aware floor detection for camera clearance so tunnels don't push the camera up to terrain. Clear permanent auras on dismount via mount display field. Use center-only sampling for terrain/WMO floors to prevent offset probes from snapping to terrain above tunnels.
This commit is contained in:
@@ -1456,6 +1456,10 @@ void GameHandler::handleUpdateObject(network::Packet& packet) {
|
||||
uint32_t old = currentMountDisplayId_;
|
||||
currentMountDisplayId_ = val;
|
||||
if (val != old && mountCallback_) mountCallback_(val);
|
||||
if (old != 0 && val == 0) {
|
||||
for (auto& a : playerAuras)
|
||||
if (!a.isEmpty() && a.maxDurationMs < 0) a = AuraSlot{};
|
||||
}
|
||||
}
|
||||
unit->setMountDisplayId(val);
|
||||
break;
|
||||
@@ -1628,6 +1632,10 @@ void GameHandler::handleUpdateObject(network::Packet& packet) {
|
||||
uint32_t old = currentMountDisplayId_;
|
||||
currentMountDisplayId_ = val;
|
||||
if (val != old && mountCallback_) mountCallback_(val);
|
||||
if (old != 0 && val == 0) {
|
||||
for (auto& a : playerAuras)
|
||||
if (!a.isEmpty() && a.maxDurationMs < 0) a = AuraSlot{};
|
||||
}
|
||||
}
|
||||
unit->setMountDisplayId(val);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user