From 498c02fa4dede9231f9a4025f8c72c23860a5dc7 Mon Sep 17 00:00:00 2001 From: ulukyn Date: Thu, 9 May 2019 18:58:15 +0200 Subject: [PATCH] Fixed: remove Zig enter/leave bag menu option when not a pet --HG-- branch : patches-from-atys --- code/ryzom/client/src/game_context_menu.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/ryzom/client/src/game_context_menu.cpp b/code/ryzom/client/src/game_context_menu.cpp index c1e102498..7ef7d73fd 100644 --- a/code/ryzom/client/src/game_context_menu.cpp +++ b/code/ryzom/client/src/game_context_menu.cpp @@ -976,6 +976,14 @@ bool testMenuOptionForPackAnimal( CEntityCL* selectedAnimalInVision, uint index, if(!node) return false; 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 // Is the character mounted on the animal?