Fixed: remove Zig enter/leave bag menu option when not a pet

--HG--
branch : patches-from-atys
hg/hotfix/patches-from-atys
ulukyn 6 years ago
parent a7e75b1c6c
commit 498c02fa4d

@ -976,6 +976,14 @@ bool testMenuOptionForPackAnimal( CEntityCL* selectedAnimalInVision, uint index,
if(!node) return false; if(!node) return false;
ANIMAL_TYPE::EAnimalType anitype= (ANIMAL_TYPE::EAnimalType)node->getValue32(); ANIMAL_TYPE::EAnimalType anitype= (ANIMAL_TYPE::EAnimalType)node->getValue32();
if (anitype != ANIMAL_TYPE::Pet)
{
if (pEnterBag)
pEnterBag->setActive(false);
if (pLeaveBag)
pLeaveBag->setActive(false);
}
// COMMON PART FOR ALL TYPES OF ANIMAL // COMMON PART FOR ALL TYPES OF ANIMAL
// Is the character mounted on the animal? // Is the character mounted on the animal?

Loading…
Cancel
Save