From 8dd8e22a0beda8d8f60b2935dce31405dc484dc6 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Thu, 4 Aug 2016 00:55:28 +0300 Subject: [PATCH] Replace tabs with spaces in LocalPlayer changes --- apps/openmw/mwmp/LocalPlayer.cpp | 38 ++++++++++++++++---------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/apps/openmw/mwmp/LocalPlayer.cpp b/apps/openmw/mwmp/LocalPlayer.cpp index 656672f8a..9bb35ec17 100644 --- a/apps/openmw/mwmp/LocalPlayer.cpp +++ b/apps/openmw/mwmp/LocalPlayer.cpp @@ -140,26 +140,26 @@ void LocalPlayer::setCell() int y = GetCell()->mCellId.mIndex.mY; ESM::CellId curCell = player.mCell->getCell()->mCellId; - if (GetCell()->mName.empty()) - { - world->indexToPosition(x, y, pos.pos[0], pos.pos[1], true); - pos.pos[2] = 0; + if (GetCell()->mName.empty()) + { + world->indexToPosition(x, y, pos.pos[0], pos.pos[1], true); + 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->fixPosition(player); - } - else if (world->findExteriorPosition(GetCell()->mName, pos)) - { - world->changeToExteriorCell(pos, true); - world->fixPosition(player); - } - else - { - world->findInteriorPosition(GetCell()->mName, pos); - world->changeToInteriorCell(GetCell()->mName, pos, true); - } + world->changeToExteriorCell(pos, true); + world->fixPosition(player); + } + else if (world->findExteriorPosition(GetCell()->mName, pos)) + { + world->changeToExteriorCell(pos, true); + world->fixPosition(player); + } + else + { + world->findInteriorPosition(GetCell()->mName, pos); + world->changeToInteriorCell(GetCell()->mName, pos, true); + } updateCell(true); } @@ -391,7 +391,7 @@ void LocalPlayer::updateCell(bool forceUpdate) GetNetworking()->GetPacket((RakNet::MessageID) ID_GAME_CELL)->Packet(&bs, this, true); GetNetworking()->SendData(&bs); - updatePosition(true); + updatePosition(true); } }