mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-07-04 01:51:38 +00:00
Update position after changing cell (for real)
This commit is contained in:
parent
b0bd10f219
commit
3362902396
1 changed files with 4 additions and 2 deletions
|
@ -155,8 +155,8 @@ void LocalPlayer::setCell()
|
||||||
world->changeToExteriorCell(pos, true);
|
world->changeToExteriorCell(pos, true);
|
||||||
world->fixPosition(player);
|
world->fixPosition(player);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
world->findInteriorPosition(GetCell()->mName, pos);
|
world->findInteriorPosition(GetCell()->mName, pos);
|
||||||
world->changeToInteriorCell(GetCell()->mName, pos, true);
|
world->changeToInteriorCell(GetCell()->mName, pos, true);
|
||||||
}
|
}
|
||||||
|
@ -390,6 +390,8 @@ void LocalPlayer::updateCell(bool forceUpdate)
|
||||||
RakNet::BitStream bs;
|
RakNet::BitStream bs;
|
||||||
GetNetworking()->GetPacket((RakNet::MessageID) ID_GAME_CELL)->Packet(&bs, this, true);
|
GetNetworking()->GetPacket((RakNet::MessageID) ID_GAME_CELL)->Packet(&bs, this, true);
|
||||||
GetNetworking()->SendData(&bs);
|
GetNetworking()->SendData(&bs);
|
||||||
|
|
||||||
|
updatePosition(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue