Do not adjust position for falling actors

coverity_clang_test
elsid 2 years ago
parent 6d3de520e8
commit 953954ff95
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -18,6 +18,7 @@
Bug #6987: Set/Mod Blindness should not darken the screen
Bug #6992: Crossbow reloading doesn't look the same as in Morrowind
Bug #6993: Shooting your last round of ammunition causes the attack animation to cancel
Bug #7009: Falling actors teleport to the ground without receiving any damage on cell loading
Feature #6933: Support high-resolution cursor textures
Feature #6945: Support S3TC-compressed and BGR/BGRA NiPixelData
Feature #6979: Add support of loading and displaying LOD assets purely based on their filename extension

@ -4,10 +4,12 @@
#include <memory>
#include "character.hpp"
#include "creaturestats.hpp"
#include "greetingstate.hpp"
#include "../mwbase/environment.hpp"
#include "../mwbase/world.hpp"
#include "../mwworld/class.hpp"
#include <components/misc/timer.hpp>
@ -28,7 +30,7 @@ namespace MWMechanics
public:
Actor(const MWWorld::Ptr& ptr, MWRender::Animation* animation)
: mCharacterController(ptr, animation)
, mPositionAdjusted(false)
, mPositionAdjusted(ptr.getClass().getCreatureStats(ptr).getFallHeight() > 0)
{
}

Loading…
Cancel
Save