mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-25 21:41:04 +00:00
Remove useless code. ipos is already initialized with the correct
values.
This commit is contained in:
parent
08e73a09ec
commit
c6c02a6f16
@ -1444,17 +1444,11 @@ namespace MWWorld
|
||||
ipos.pos[1] = spawnPoint.y();
|
||||
ipos.pos[2] = spawnPoint.z();
|
||||
|
||||
if (!referenceObject.getClass().isActor())
|
||||
{
|
||||
ipos.rot[0] = referenceObject.getRefData().getPosition().rot[0];
|
||||
ipos.rot[1] = referenceObject.getRefData().getPosition().rot[1];
|
||||
}
|
||||
else
|
||||
if (referenceObject.getClass().isActor())
|
||||
{
|
||||
ipos.rot[0] = 0;
|
||||
ipos.rot[1] = 0;
|
||||
}
|
||||
ipos.rot[2] = referenceObject.getRefData().getPosition().rot[2];
|
||||
|
||||
MWWorld::Ptr placed = copyObjectToCell(ptr, referenceCell, ipos, ptr.getRefData().getCount(), false);
|
||||
adjustPosition(placed, true); // snap to ground
|
||||
|
Loading…
x
Reference in New Issue
Block a user