mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
Fix /unstuckgy hang by skipping WMO floor search
Add CameraController::teleportTo() that directly places the player at the target position without the expensive floor-search loop in reset(). The loop does hundreds of WMO collision checks which hangs in cities.
This commit is contained in:
parent
eb92a71b71
commit
8fee55f99f
3 changed files with 29 additions and 2 deletions
|
|
@ -627,9 +627,8 @@ void Application::setupUICallbacks() {
|
|||
}
|
||||
|
||||
glm::vec3 safePos = core::coords::canonicalToRender(safeCanonical);
|
||||
*ft = safePos;
|
||||
cc->setDefaultSpawn(safePos, cc->getYaw(), cc->getPitch());
|
||||
cc->reset();
|
||||
cc->teleportTo(safePos);
|
||||
});
|
||||
|
||||
// Bind point update (innkeeper)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue