mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-20 17:23:53 +00:00
Remove unneeded code
This commit is contained in:
parent
3f6543860a
commit
3bbde312b9
3 changed files with 1 additions and 4 deletions
|
@ -330,7 +330,7 @@ namespace MWMechanics
|
|||
mCombatMove = true;
|
||||
}
|
||||
// dodge movements (for NPCs and bipedal creatures)
|
||||
else if (isNpc || ((actor.get<ESM::Creature>()->mBase->mFlags & ESM::Creature::Bipedal) != 0))
|
||||
else if (actor.getClass().isBipedal(actor))
|
||||
{
|
||||
// get the range of the target's weapon
|
||||
float rangeAttackOfTarget = 0.f;
|
||||
|
|
|
@ -462,8 +462,6 @@ namespace MWMechanics
|
|||
|
||||
void ActionWeapon::prepare(const MWWorld::Ptr &actor)
|
||||
{
|
||||
mIsNpc = actor.getClass().isNpc();
|
||||
|
||||
if (actor.getClass().hasInventoryStore(actor))
|
||||
{
|
||||
if (mWeapon.isEmpty())
|
||||
|
|
|
@ -63,7 +63,6 @@ namespace MWMechanics
|
|||
private:
|
||||
MWWorld::Ptr mAmmunition;
|
||||
MWWorld::Ptr mWeapon;
|
||||
bool mIsNpc;
|
||||
|
||||
public:
|
||||
/// \a weapon may be empty for hand-to-hand combat
|
||||
|
|
Loading…
Reference in a new issue