|
|
|
@ -32,7 +32,7 @@ namespace MWScript
|
|
|
|
|
std::vector<MWWorld::Ptr> actors;
|
|
|
|
|
MWBase::Environment::get().getWorld()->getActorsStandingOn (ptr, actors);
|
|
|
|
|
for (auto& actor : actors)
|
|
|
|
|
MWBase::Environment::get().getWorld()->moveObjectBy(actor, diff, false);
|
|
|
|
|
MWBase::Environment::get().getWorld()->moveObjectBy(actor, diff, false, false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
template<class R>
|
|
|
|
@ -303,7 +303,7 @@ namespace MWScript
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dynamic_cast<MWScript::InterpreterContext&>(runtime.getContext()).updatePtr(ptr,
|
|
|
|
|
MWBase::Environment::get().getWorld()->moveObjectBy(ptr, newPos - curPos, true));
|
|
|
|
|
MWBase::Environment::get().getWorld()->moveObjectBy(ptr, newPos - curPos, true, true));
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -726,7 +726,7 @@ namespace MWScript
|
|
|
|
|
// This approach can be used to create elevators.
|
|
|
|
|
moveStandingActors(ptr, diff);
|
|
|
|
|
dynamic_cast<MWScript::InterpreterContext&>(runtime.getContext()).updatePtr(ptr,
|
|
|
|
|
MWBase::Environment::get().getWorld()->moveObjectBy(ptr, diff, false));
|
|
|
|
|
MWBase::Environment::get().getWorld()->moveObjectBy(ptr, diff, false, true));
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@ -762,7 +762,7 @@ namespace MWScript
|
|
|
|
|
// This approach can be used to create elevators.
|
|
|
|
|
moveStandingActors(ptr, diff);
|
|
|
|
|
dynamic_cast<MWScript::InterpreterContext&>(runtime.getContext()).updatePtr(ptr,
|
|
|
|
|
MWBase::Environment::get().getWorld()->moveObjectBy(ptr, diff, false));
|
|
|
|
|
MWBase::Environment::get().getWorld()->moveObjectBy(ptr, diff, false, true));
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|