diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/net/manaserv/playerhandler.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/net/manaserv/playerhandler.cpp b/src/net/manaserv/playerhandler.cpp index d7c3dab6..9847ca35 100644 --- a/src/net/manaserv/playerhandler.cpp +++ b/src/net/manaserv/playerhandler.cpp @@ -160,7 +160,13 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) case GPMSG_LEVEL_PROGRESS: { - PlayerInfo::setAttribute(EXP, msg.readInt8()); + // Don't show the first XP notification as it is sent by the server + // to initialize the current XP level. + static bool firstTime = true; + if (firstTime) + firstTime = false; + else + PlayerInfo::setAttribute(EXP, msg.readInt8()); } break; |