From 1f72c8a3f380325f5f4a82137f8bac02362916df Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 13 Jul 2017 20:22:52 +0300 Subject: Add property "showBadge" to groups. For default groups.xml show badges only for group id == 60. --- src/being/being.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/being/being.cpp') diff --git a/src/being/being.cpp b/src/being/being.cpp index ff8593c11..147be14a4 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -86,6 +86,7 @@ #include "resources/db/avatardb.h" #include "resources/db/badgesdb.h" +#include "resources/db/groupdb.h" #include "resources/db/elementaldb.h" #include "resources/db/emotedb.h" #include "resources/db/homunculusdb.h" @@ -3498,7 +3499,10 @@ void Being::setGender(const GenderT gender) restrict2 void Being::showGmBadge(const bool show) restrict2 { delete2(mBadges[BadgeIndex::Gm]); - if (show && mIsGM && (mShowBadges != 0u)) + if (show && + mIsGM && + mShowBadges != 0u && + GroupDb::getShowBadge(mGroupId)) { const std::string gmBadge = paths.getStringValue("gmbadge"); if (!gmBadge.empty()) -- cgit v1.2.3-60-g2f50