forked from mirror/openmw-tes3mp
Reset fall height when teleporting (Fixes #2629)
This commit is contained in:
parent
05ad0dca34
commit
9728a6967e
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
|||
#include "../mwbase/world.hpp"
|
||||
#include "../mwbase/mechanicsmanager.hpp"
|
||||
|
||||
#include "../mwmechanics/creaturestats.hpp"
|
||||
|
||||
#include "../mwworld/class.hpp"
|
||||
|
||||
#include "player.hpp"
|
||||
|
@ -34,6 +36,7 @@ namespace MWWorld
|
|||
void ActionTeleport::teleport(const Ptr &actor)
|
||||
{
|
||||
MWBase::World* world = MWBase::Environment::get().getWorld();
|
||||
actor.getClass().getCreatureStats(actor).land();
|
||||
if(actor == world->getPlayerPtr())
|
||||
{
|
||||
world->getPlayer().setTeleported(true);
|
||||
|
|
Loading…
Reference in a new issue