Merge branch 'fallinglift' into 'master'

Unbreak elevators (#5670)

See merge request OpenMW/openmw!385
pull/593/head
AnyOldName3 4 years ago
commit 3c5d025849

@ -32,11 +32,7 @@ namespace MWScript
std::vector<MWWorld::Ptr> actors;
MWBase::Environment::get().getWorld()->getActorsStandingOn (ptr, actors);
for (auto& actor : actors)
{
osg::Vec3f actorPos(actor.getRefData().getPosition().asVec3());
actorPos += diff;
MWBase::Environment::get().getWorld()->moveObject(actor, actorPos.x(), actorPos.y(), actorPos.z());
}
MWBase::Environment::get().getWorld()->queueMovement(actor, diff);
}
template<class R>

Loading…
Cancel
Save