From 6b06886cfd94b3efe613831deb73ce0d657f9fde Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 19 Feb 2018 03:22:09 +0300 Subject: Fix update gm badge if group was changed on the fly. --- src/being/being.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/being/being.cpp') diff --git a/src/being/being.cpp b/src/being/being.cpp index bb921f92f..3b012fd90 100644 --- a/src/being/being.cpp +++ b/src/being/being.cpp @@ -3669,8 +3669,6 @@ void Being::setGM(const bool gm) restrict2 if (mIsGM != gm) { mIsGM = gm; - - showGmBadge(mIsGM); updateColors(); } } @@ -5581,3 +5579,12 @@ Being *Being::createBeing(const BeingId id, map); return being; } + +void Being::setGroupId(const int id) +{ + if (mGroupId != id) + { + mGroupId = id; + showGmBadge(id != 0); + } +} -- cgit v1.2.3-60-g2f50