[Client] Spawn at exterior 0, -7 by default

This commit is contained in:
David Cernat 2018-12-17 08:25:22 +02:00
parent afd17e5a48
commit 50714599d9

View file

@ -282,24 +282,16 @@ namespace MWWorld
/* /*
Start of tes3mp change (major) Start of tes3mp change (major)
If Pelagiad exists, spawn there; otherwise, spawn at 0 ,0 Spawn at 0, -7 by default
*/ */
if (findExteriorPosition("Pelagiad", pos)) const int cellSize = 8192;
{ pos.pos[0] = cellSize / 2;
changeToExteriorCell(pos, true); pos.pos[1] = cellSize * -7 + cellSize / 2;
fixPosition(getPlayerPtr()); pos.pos[2] = 0;
} pos.rot[0] = 0;
else pos.rot[1] = 0;
{ pos.rot[2] = 0;
const int cellSize = 8192; mWorldScene->changeToExteriorCell(pos, true);
pos.pos[0] = cellSize / 2;
pos.pos[1] = cellSize / 2;
pos.pos[2] = 0;
pos.rot[0] = 0;
pos.rot[1] = 0;
pos.rot[2] = 0;
mWorldScene->changeToExteriorCell(pos, true);
}
/* /*
End of tes3mp change (major) End of tes3mp change (major)
*/ */