forked from mirror/openmw-tes3mp
[Client] Spawn in 0,0 if Pelagiad doesn't exist (for other master files)
This commit is contained in:
parent
aab5b69c80
commit
ff0d21ef38
1 changed files with 19 additions and 14 deletions
|
@ -267,8 +267,17 @@ namespace MWWorld
|
|||
{
|
||||
ESM::Position pos;
|
||||
|
||||
/* Disabled by tes3mp
|
||||
// Major change made by tes3mp
|
||||
//
|
||||
// If Pelagiad exists, spawn there; otherwise, spawn at 0,0
|
||||
|
||||
if (findExteriorPosition("Pelagiad", pos))
|
||||
{
|
||||
changeToExteriorCell(pos, true);
|
||||
fixPosition(getPlayerPtr());
|
||||
}
|
||||
else
|
||||
{
|
||||
const int cellSize = 8192;
|
||||
pos.pos[0] = cellSize / 2;
|
||||
pos.pos[1] = cellSize / 2;
|
||||
|
@ -277,11 +286,7 @@ namespace MWWorld
|
|||
pos.rot[1] = 0;
|
||||
pos.rot[2] = 0;
|
||||
mWorldScene->changeToExteriorCell(pos, true);
|
||||
*/
|
||||
|
||||
findExteriorPosition("Pelagiad", pos);
|
||||
changeToExteriorCell(pos, true);
|
||||
fixPosition(getPlayerPtr());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue