mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 06:53:53 +00:00
Restore cell changes
This commit is contained in:
parent
152d690a7a
commit
9a0db5d55a
1 changed files with 3 additions and 3 deletions
|
@ -1128,7 +1128,7 @@ namespace MWWorld
|
|||
|
||||
ptr.getRefData().setPosition(pos);
|
||||
|
||||
Ogre::Vector3 vec(x, y, z);
|
||||
osg::Vec3f vec(x, y, z);
|
||||
|
||||
CellStore *currCell = ptr.isInCell() ? ptr.getCell() : NULL; // currCell == NULL should only happen for player, during initial startup
|
||||
bool isPlayer = ptr == mPlayer->getPlayer();
|
||||
|
@ -1207,12 +1207,12 @@ namespace MWWorld
|
|||
}
|
||||
if (haveToMove && newPtr.getRefData().getBaseNode())
|
||||
{
|
||||
mRendering->moveObject(newPtr, osg::Vec3f(vec.x, vec.y, vec.z));
|
||||
mRendering->moveObject(newPtr, vec);
|
||||
mPhysics->updatePosition(newPtr);
|
||||
}
|
||||
if (isPlayer)
|
||||
{
|
||||
//mWorldScene->playerMoved (vec);
|
||||
mWorldScene->playerMoved(vec);
|
||||
}
|
||||
return newPtr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue