From b43a9478fb7af4a2352f55395bdeda5067b5f721 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 8 Mar 2016 21:13:51 +0300 Subject: Add into tmwa Sp constants value GM_LEVEL. --- src/net/tmwa/playerhandler.cpp | 2 +- src/net/tmwa/sp.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index d9f391853..33481d85a 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -408,7 +408,7 @@ void PlayerHandler::setStat(Net::MessageIn &msg, case Sp::JOB: PlayerInfo::setStatBase(Attributes::JOB, base); break; - case 500: + case Sp::GM_LEVEL: localPlayer->setGMLevel(base); break; diff --git a/src/net/tmwa/sp.h b/src/net/tmwa/sp.h index f1c8a3a19..01a552ea5 100644 --- a/src/net/tmwa/sp.h +++ b/src/net/tmwa/sp.h @@ -69,7 +69,9 @@ namespace Sp FLEE_MOD = 51, CRIT = 52, ATTACK_DELAY = 53, - JOB = 55 + JOB = 55, + + GM_LEVEL = 500 }; } // namespace Sp -- cgit v1.2.3-70-g09d2