mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:23:52 +00:00
Build fix.
This commit is contained in:
parent
b4a000913c
commit
3483b54df5
2 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,7 @@ void Players::CreatePlayer(RakNet::RakNetGUID id)
|
|||
world->findInteriorPosition("ToddTest", _pos);
|
||||
MWWorld::CellStore *store = world->getInterior("ToddTest");
|
||||
|
||||
MWWorld::Ptr tmp = world->safePlaceObject(_player->reference->getPtr(), store, _pos);
|
||||
MWWorld::Ptr tmp = world->placeObject(_player->reference->getPtr(), store, _pos);
|
||||
|
||||
_player->ptr.mCell = tmp.mCell;
|
||||
_player->ptr.mRef = tmp.mRef;
|
||||
|
|
|
@ -387,7 +387,7 @@ void Networking::ReciveMessage(RakNet::Packet *packet)
|
|||
player.getClass().getCreatureStats(player).resurrect();
|
||||
ESM::Position pos;
|
||||
MWBase::Environment::get().getWorld()->findInteriorPosition("ToddTest", pos);
|
||||
MWBase::Environment::get().getWorld()->changeToInteriorCell("ToddTest", pos);
|
||||
MWBase::Environment::get().getWorld()->changeToInteriorCell("ToddTest", pos, true);
|
||||
(*getLocalPlayer()->Position()) = pos;
|
||||
(*getLocalPlayer()->GetCell()) = *player.getCell()->getCell();
|
||||
myPacket->Send(getLocalPlayer(), serverAddr);
|
||||
|
@ -423,7 +423,7 @@ void Networking::ReciveMessage(RakNet::Packet *packet)
|
|||
MWBase::World *world = MWBase::Environment::get().getWorld();
|
||||
ESM::Position pos;
|
||||
world->findInteriorPosition(getLocalPlayer()->GetCell()->mName, pos);
|
||||
world->changeToInteriorCell(getLocalPlayer()->GetCell()->mName, pos);
|
||||
world->changeToInteriorCell(getLocalPlayer()->GetCell()->mName, pos, true);
|
||||
}
|
||||
|
||||
getLocalPlayer()->updateCell(true);
|
||||
|
|
Loading…
Reference in a new issue