diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-13 18:49:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-13 18:49:23 +0300 |
commit | 56373bec70b817dded49a3de69a21cdbee21873f (patch) | |
tree | 3c674c14cb7d708e66cf2eb5f475c6bd7a5d7819 /src/net | |
parent | 02b72b24657ef2471b143699b8a99fecc4dc2390 (diff) | |
download | plus-56373bec70b817dded49a3de69a21cdbee21873f.tar.gz plus-56373bec70b817dded49a3de69a21cdbee21873f.tar.bz2 plus-56373bec70b817dded49a3de69a21cdbee21873f.tar.xz plus-56373bec70b817dded49a3de69a21cdbee21873f.zip |
Add default gm level for legacy server, because real level almost always hidden.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/tmwa/beingrecv.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tmwa/beingrecv.cpp b/src/net/tmwa/beingrecv.cpp index 7a1b86356..7ff599be5 100644 --- a/src/net/tmwa/beingrecv.cpp +++ b/src/net/tmwa/beingrecv.cpp @@ -23,6 +23,7 @@ #include "net/tmwa/beingrecv.h" #include "actormanager.h" +#include "configuration.h" #include "effectmanager.h" #include "guild.h" #include "party.h" @@ -68,7 +69,7 @@ static void setGm(Being *const dstBeing, { if ((gmstatus & 0x80) != 0) { - dstBeing->setGroupId(60); + dstBeing->setGroupId(paths.getIntValue("gmDefaultLevel")); dstBeing->setGM(true); } else |