summaryrefslogtreecommitdiff
path: root/src/net/tmwa
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-08 21:13:51 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-08 21:13:51 +0300
commitb43a9478fb7af4a2352f55395bdeda5067b5f721 (patch)
treee4b9e1b842c786d2157c3902d885e24850073da8 /src/net/tmwa
parent6ccaaa586b3f4d739ccfa1dc90cdf96b8810d31a (diff)
downloadplus-b43a9478fb7af4a2352f55395bdeda5067b5f721.tar.gz
plus-b43a9478fb7af4a2352f55395bdeda5067b5f721.tar.bz2
plus-b43a9478fb7af4a2352f55395bdeda5067b5f721.tar.xz
plus-b43a9478fb7af4a2352f55395bdeda5067b5f721.zip
Add into tmwa Sp constants value GM_LEVEL.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r--src/net/tmwa/playerhandler.cpp2
-rw-r--r--src/net/tmwa/sp.h4
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