From 56373bec70b817dded49a3de69a21cdbee21873f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 13 Jul 2017 18:49:23 +0300 Subject: Add default gm level for legacy server, because real level almost always hidden. --- src/net/tmwa/beingrecv.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net/tmwa') 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 -- cgit v1.2.3-70-g09d2