[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,7 +246,8 @@ 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
if (mwmp::Main::get().getLocalPlayer()->hasFinishedCharGen())
mwmp::Main::get().getLocalPlayer()->sendCellUnload(*(*iter)->getCell()); mwmp::Main::get().getLocalPlayer()->sendCellUnload(*(*iter)->getCell());
} }
@ -315,7 +316,8 @@ 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
if (mwmp::Main::get().getLocalPlayer()->hasFinishedCharGen())
mwmp::Main::get().getLocalPlayer()->sendCellLoad(*cell->getCell()); mwmp::Main::get().getLocalPlayer()->sendCellLoad(*cell->getCell());
} }