summaryrefslogtreecommitdiff
path: root/src/net/tmwa/beingrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-04 01:39:30 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-04 01:39:30 +0300
commit44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0 (patch)
tree16ef6000be72c8959672d1210e89f595a55925a5 /src/net/tmwa/beingrecv.cpp
parentb889e7fe2d2b1162bad9cf39831e1becf3d9e480 (diff)
downloadmv-44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0.tar.gz
mv-44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0.tar.bz2
mv-44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0.tar.xz
mv-44ef6547161dd3cd2e1bb4053bb5e8619e6dc0d0.zip
Add support for hightlight attribute in groups.xml
This attribute allow to highlight gm groups based on groups.xml
Diffstat (limited to 'src/net/tmwa/beingrecv.cpp')
-rw-r--r--src/net/tmwa/beingrecv.cpp19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp
index c47b3e2c7..a40bcd1aa 100644
--- a/src/net/tmwa/beingrecv.cpp
+++ b/src/net/tmwa/beingrecv.cpp
@@ -64,25 +64,14 @@ namespace TmwAthena
static void setGm(Being *const dstBeing,
const uint16_t gmstatus)
{
- if (dstBeing != localPlayer)
+ if (dstBeing != localPlayer &&
+ gmstatus == 0x80)
{
- if (gmstatus == 0x80)
- {
- dstBeing->setGroupId(paths.getIntValue("gmDefaultLevel"));
- dstBeing->setGM(true);
- }
- else
- {
- dstBeing->setGroupId(gmstatus);
- dstBeing->setGM(gmstatus != 0);
- }
+ dstBeing->setGroupId(paths.getIntValue("gmDefaultLevel"));
}
else
{
- if (gmstatus != 0)
- dstBeing->setGM(true);
- else
- dstBeing->setGM(false);
+ dstBeing->setGroupId(gmstatus);
}
}