mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 08:53:52 +00:00
Merge pull request #2814 from Capostrophic/autoequip
Revert an invalid attempt to autoequip shields instead of torches
This commit is contained in:
commit
d8c8bc33b7
2 changed files with 0 additions and 6 deletions
|
@ -217,7 +217,6 @@
|
||||||
Bug #5264: "Damage Fatigue" Magic Effect Can Bring Fatigue below 0
|
Bug #5264: "Damage Fatigue" Magic Effect Can Bring Fatigue below 0
|
||||||
Bug #5269: Editor: Cell lighting in resaved cleaned content files is corrupted
|
Bug #5269: Editor: Cell lighting in resaved cleaned content files is corrupted
|
||||||
Bug #5278: Console command Show doesn't fall back to global variable after local var not found
|
Bug #5278: Console command Show doesn't fall back to global variable after local var not found
|
||||||
Bug #5300: NPCs don't switch from torch to shield when starting combat
|
|
||||||
Bug #5308: World map copying makes save loading much slower
|
Bug #5308: World map copying makes save loading much slower
|
||||||
Bug #5313: Node properties of identical type are not applied in the correct order
|
Bug #5313: Node properties of identical type are not applied in the correct order
|
||||||
Bug #5326: Formatting issues in the settings.cfg
|
Bug #5326: Formatting issues in the settings.cfg
|
||||||
|
|
|
@ -1235,11 +1235,6 @@ namespace MWMechanics
|
||||||
if (heldIter != inventoryStore.end() && heldIter->getTypeName() != typeid(ESM::Light).name())
|
if (heldIter != inventoryStore.end() && heldIter->getTypeName() != typeid(ESM::Light).name())
|
||||||
inventoryStore.unequipItem(*heldIter, ptr);
|
inventoryStore.unequipItem(*heldIter, ptr);
|
||||||
}
|
}
|
||||||
else if (heldIter == inventoryStore.end() || heldIter->getTypeName() == typeid(ESM::Light).name())
|
|
||||||
{
|
|
||||||
// For hostile NPCs, see if they have anything better to equip first
|
|
||||||
inventoryStore.autoEquip(ptr);
|
|
||||||
}
|
|
||||||
|
|
||||||
heldIter = inventoryStore.getSlot(MWWorld::InventoryStore::Slot_CarriedLeft);
|
heldIter = inventoryStore.getSlot(MWWorld::InventoryStore::Slot_CarriedLeft);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue