mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 21:40:15 +00:00
Fix for non-bipedal creatures that use weapons, e.g. rieklings
This commit is contained in:
parent
82740c1645
commit
741e5db862
@ -1789,7 +1789,8 @@ void CharacterController::update(float duration)
|
||||
}
|
||||
}
|
||||
|
||||
if(cls.isBipedal(mPtr))
|
||||
// bipedal means hand-to-hand could be used (which is handled in updateWeaponState). an existing InventoryStore means an actual weapon could be used.
|
||||
if(cls.isBipedal(mPtr) || cls.hasInventoryStore(mPtr))
|
||||
forcestateupdate = updateWeaponState() || forcestateupdate;
|
||||
else
|
||||
forcestateupdate = updateCreatureState() || forcestateupdate;
|
||||
|
Loading…
x
Reference in New Issue
Block a user