mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-10-01 09:00:58 -04:00
Replace tabs with spaces in LocalPlayer changes
This commit is contained in:
parent
3362902396
commit
8dd8e22a0b
@ -140,26 +140,26 @@ void LocalPlayer::setCell()
|
|||||||
int y = GetCell()->mCellId.mIndex.mY;
|
int y = GetCell()->mCellId.mIndex.mY;
|
||||||
ESM::CellId curCell = player.mCell->getCell()->mCellId;
|
ESM::CellId curCell = player.mCell->getCell()->mCellId;
|
||||||
|
|
||||||
if (GetCell()->mName.empty())
|
if (GetCell()->mName.empty())
|
||||||
{
|
{
|
||||||
world->indexToPosition(x, y, pos.pos[0], pos.pos[1], true);
|
world->indexToPosition(x, y, pos.pos[0], pos.pos[1], true);
|
||||||
pos.pos[2] = 0;
|
pos.pos[2] = 0;
|
||||||
|
|
||||||
pos.rot[0] = pos.rot[1] = pos.rot[2] = 0;
|
pos.rot[0] = pos.rot[1] = pos.rot[2] = 0;
|
||||||
|
|
||||||
world->changeToExteriorCell(pos, true);
|
world->changeToExteriorCell(pos, true);
|
||||||
world->fixPosition(player);
|
world->fixPosition(player);
|
||||||
}
|
}
|
||||||
else if (world->findExteriorPosition(GetCell()->mName, pos))
|
else if (world->findExteriorPosition(GetCell()->mName, pos))
|
||||||
{
|
{
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateCell(true);
|
updateCell(true);
|
||||||
}
|
}
|
||||||
@ -391,7 +391,7 @@ void LocalPlayer::updateCell(bool forceUpdate)
|
|||||||
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);
|
updatePosition(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user