[Client] Only send ID_PLAYER_CELL_LOAD when CharGen is over

coverity_scan^2
David Cernat 8 years ago
parent b5b5551fcd
commit 055376c8ee

@ -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…
Cancel
Save