From 06fff57500242c37890459ceffdfff2bdf19f6d6 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 29 Sep 2011 00:01:37 +0200 Subject: Made the first XP notification don't show anymore. Resolves: Mana-Mantis #158. --- src/net/manaserv/playerhandler.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/net/manaserv') 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; -- cgit v1.2.3-60-g2f50