mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 23:21:20 -04:00
[Client] Spawn at exterior 0, -7 by default
This commit is contained in:
parent
afd17e5a48
commit
50714599d9
@ -282,24 +282,16 @@ namespace MWWorld
|
||||
/*
|
||||
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))
|
||||
{
|
||||
changeToExteriorCell(pos, true);
|
||||
fixPosition(getPlayerPtr());
|
||||
}
|
||||
else
|
||||
{
|
||||
const int cellSize = 8192;
|
||||
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);
|
||||
}
|
||||
const int cellSize = 8192;
|
||||
pos.pos[0] = cellSize / 2;
|
||||
pos.pos[1] = cellSize * -7 + 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)
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user