1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-01 13:09:40 +00:00

[Client] Only send ID_PLAYER_CELL_LOAD when CharGen is over

This commit is contained in:
David Cernat 2017-01-26 13:14:22 +02:00
parent b5b5551fcd
commit 055376c8ee

View file

@ -246,8 +246,9 @@ namespace MWWorld
// Added by tes3mp
//
// LocalPlayer has unloaded a cell, so send a packet with it
mwmp::Main::get().getLocalPlayer()->sendCellUnload(*(*iter)->getCell());
// LocalPlayer has unloaded a cell, so send a packet with it, but only if CharGen is over
if (mwmp::Main::get().getLocalPlayer()->hasFinishedCharGen())
mwmp::Main::get().getLocalPlayer()->sendCellUnload(*(*iter)->getCell());
}
void Scene::loadCell (CellStore *cell, Loading::Listener* loadingListener, bool respawn)
@ -315,8 +316,9 @@ namespace MWWorld
// Added by tes3mp
//
// LocalPlayer has loaded a cell, so send a packet with it
mwmp::Main::get().getLocalPlayer()->sendCellLoad(*cell->getCell());
// LocalPlayer has loaded a cell, so send a packet with it, but only if CharGen is over
if (mwmp::Main::get().getLocalPlayer()->hasFinishedCharGen())
mwmp::Main::get().getLocalPlayer()->sendCellLoad(*cell->getCell());
}
mPreloader->notifyLoaded(cell);