forked from mirror/openmw-tes3mp
[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
|
// Added by tes3mp
|
||||||
//
|
//
|
||||||
// LocalPlayer has unloaded a cell, so send a packet with it
|
// LocalPlayer has unloaded a cell, so send a packet with it, but only if CharGen is over
|
||||||
mwmp::Main::get().getLocalPlayer()->sendCellUnload(*(*iter)->getCell());
|
if (mwmp::Main::get().getLocalPlayer()->hasFinishedCharGen())
|
||||||
|
mwmp::Main::get().getLocalPlayer()->sendCellUnload(*(*iter)->getCell());
|
||||||
}
|
}
|
||||||
|
|
||||||
void Scene::loadCell (CellStore *cell, Loading::Listener* loadingListener, bool respawn)
|
void Scene::loadCell (CellStore *cell, Loading::Listener* loadingListener, bool respawn)
|
||||||
|
@ -315,8 +316,9 @@ namespace MWWorld
|
||||||
|
|
||||||
// Added by tes3mp
|
// Added by tes3mp
|
||||||
//
|
//
|
||||||
// LocalPlayer has loaded a cell, so send a packet with it
|
// LocalPlayer has loaded a cell, so send a packet with it, but only if CharGen is over
|
||||||
mwmp::Main::get().getLocalPlayer()->sendCellLoad(*cell->getCell());
|
if (mwmp::Main::get().getLocalPlayer()->hasFinishedCharGen())
|
||||||
|
mwmp::Main::get().getLocalPlayer()->sendCellLoad(*cell->getCell());
|
||||||
}
|
}
|
||||||
|
|
||||||
mPreloader->notifyLoaded(cell);
|
mPreloader->notifyLoaded(cell);
|
||||||
|
|
Loading…
Reference in a new issue