Build fix.

pull/1/head
Aesylwinn 9 years ago
parent b4a000913c
commit 3483b54df5

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