[Client] Spawn in 0,0 if Pelagiad doesn't exist (for other master files)

pull/170/head
David Cernat 8 years ago
parent aab5b69c80
commit ff0d21ef38

@ -267,21 +267,26 @@ namespace MWWorld
{ {
ESM::Position pos; ESM::Position pos;
/* Disabled by tes3mp // Major change made by tes3mp
//
const int cellSize = 8192; // If Pelagiad exists, spawn there; otherwise, spawn at 0,0
pos.pos[0] = cellSize/2;
pos.pos[1] = cellSize/2; if (findExteriorPosition("Pelagiad", pos))
pos.pos[2] = 0; {
pos.rot[0] = 0; changeToExteriorCell(pos, true);
pos.rot[1] = 0; fixPosition(getPlayerPtr());
pos.rot[2] = 0; }
mWorldScene->changeToExteriorCell(pos, true); else
*/ {
const int cellSize = 8192;
findExteriorPosition("Pelagiad", pos); pos.pos[0] = cellSize / 2;
changeToExteriorCell(pos, true); pos.pos[1] = cellSize / 2;
fixPosition(getPlayerPtr()); pos.pos[2] = 0;
pos.rot[0] = 0;
pos.rot[1] = 0;
pos.rot[2] = 0;
mWorldScene->changeToExteriorCell(pos, true);
}
} }
} }

Loading…
Cancel
Save