mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
bugfix for lockpick
This commit is contained in:
parent
20341ae8b7
commit
701ff94887
@ -528,10 +528,12 @@ void CharacterController::update(float duration, Movement &movement)
|
||||
}
|
||||
}
|
||||
|
||||
if(weaptype != WeapType_PickProbe)
|
||||
{
|
||||
std::string weapgroup;
|
||||
getWeaponGroup(mWeaponType, weapgroup);
|
||||
float weapSpeed = 1;
|
||||
if(weapon != inv.end()) {weapSpeed = weapon->get<ESM::Weapon>()->mBase->mData.mSpeed;std::cout << "setspeed "<< weapSpeed<< "\n";}
|
||||
if(weapon != inv.end()) weapSpeed = weapon->get<ESM::Weapon>()->mBase->mData.mSpeed;
|
||||
std::string start;
|
||||
std::string stop;
|
||||
float complete;
|
||||
@ -598,6 +600,7 @@ void CharacterController::update(float duration, Movement &movement)
|
||||
mUpperBodyState = UpperCharState_WeapEquiped;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MWWorld::ContainerStoreIterator torch = inv.getSlot(MWWorld::InventoryStore::Slot_CarriedLeft);
|
||||
if(torch != inv.end() && torch->getTypeName() == typeid(ESM::Light).name())
|
||||
|
Loading…
x
Reference in New Issue
Block a user