mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 16:19:41 +00:00
fixed autoequiping rings by npc - now checks if right hand is free
This commit is contained in:
parent
479f9535b4
commit
a25903b075
2 changed files with 9 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,6 +7,7 @@ Makefile
|
||||||
makefile
|
makefile
|
||||||
build*
|
build*
|
||||||
prebuilt
|
prebuilt
|
||||||
|
cmake-build-debug/
|
||||||
|
|
||||||
##windows build process
|
##windows build process
|
||||||
/deps
|
/deps
|
||||||
|
|
|
@ -315,6 +315,14 @@ void MWWorld::InventoryStore::autoEquip (const MWWorld::Ptr& actor)
|
||||||
}
|
}
|
||||||
else if (iter.getType() == ContainerStore::Type_Clothing)
|
else if (iter.getType() == ContainerStore::Type_Clothing)
|
||||||
{
|
{
|
||||||
|
if (*iter2 == MWWorld::InventoryStore::Slot_LeftRing)
|
||||||
|
{
|
||||||
|
if (slots_.at(MWWorld::InventoryStore::Slot_RightRing) == end())
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (old.getTypeName() == typeid(ESM::Clothing).name())
|
if (old.getTypeName() == typeid(ESM::Clothing).name())
|
||||||
{
|
{
|
||||||
// check value
|
// check value
|
||||||
|
|
Loading…
Reference in a new issue