mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Snap player to terrain after loading to prevent spawning underground
This commit is contained in:
parent
dfc4008ec7
commit
0ae38a59c8
2 changed files with 5 additions and 1 deletions
|
|
@ -1488,6 +1488,11 @@ void Application::loadOnlineWorldTerrain(uint32_t mapId, float x, float y, float
|
|||
}
|
||||
}
|
||||
|
||||
// Snap player to loaded terrain so they don't spawn underground
|
||||
if (renderer->getCameraController()) {
|
||||
renderer->getCameraController()->reset();
|
||||
}
|
||||
|
||||
showProgress("Entering world...", 1.0f);
|
||||
|
||||
if (loadingScreenOk) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue