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:
parent
b5b5551fcd
commit
055376c8ee
1 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue