forked from teamnwah/openmw-tes3coop
some correction
This commit is contained in:
parent
5d1c01a58e
commit
eaf6a8df94
1 changed files with 4 additions and 4 deletions
|
@ -253,15 +253,15 @@ namespace MWScript
|
|||
MWWorld::CellStore* store = MWBase::Environment::get().getWorld()->getInterior(cellID);
|
||||
if(!store)
|
||||
{
|
||||
ESM::Cell cell = MWBase::Environment::get().getWorld()->getExterior(cellID);
|
||||
const ESM::Cell* cell = MWBase::Environment::get().getWorld()->getExterior(cellID);
|
||||
if(cell)
|
||||
{
|
||||
store = MWBase::Environment::get().getWorld()->getExterior(cell.getGridX(),cell.getGridY());
|
||||
store = MWBase::Environment::get().getWorld()->getExterior(cell->getGridX(),cell->getGridY());
|
||||
}
|
||||
}
|
||||
if(store)
|
||||
{
|
||||
MWBase::Environment::get().getWorld()->moveObject(ptr,store,x,y,z);
|
||||
MWBase::Environment::get().getWorld()->moveObject(ptr,*store,x,y,z);
|
||||
float ax = Ogre::Radian(ptr.getRefData().getPosition().rot[0]).valueDegrees();
|
||||
float ay = Ogre::Radian(ptr.getRefData().getPosition().rot[1]).valueDegrees();
|
||||
if(ptr.getTypeName() == "struct ESM::NPC")//some morrowind oddity
|
||||
|
@ -294,7 +294,7 @@ namespace MWScript
|
|||
runtime.pop();
|
||||
|
||||
MWBase::Environment::get().getWorld()->moveObject(ptr,
|
||||
MWBase::Environment::get().getWorld()->getExterior(x,y),x,y,z);
|
||||
*MWBase::Environment::get().getWorld()->getExterior(x,y),x,y,z);
|
||||
float ax = Ogre::Radian(ptr.getRefData().getPosition().rot[0]).valueDegrees();
|
||||
float ay = Ogre::Radian(ptr.getRefData().getPosition().rot[1]).valueDegrees();
|
||||
if(ptr.getTypeName() == "struct ESM::NPC")//some morrowind oddity
|
||||
|
|
Loading…
Reference in a new issue