summaryrefslogtreecommitdiff
path: root/src/net/manaserv
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-09-29 00:01:37 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-09-29 00:01:37 +0200
commit06fff57500242c37890459ceffdfff2bdf19f6d6 (patch)
tree3da4ee85e01de71077764e41bf7d4b502afac127 /src/net/manaserv
parent2f145657be8a07dd3bdab1389762152bdb8399ce (diff)
downloadmana-client-06fff57500242c37890459ceffdfff2bdf19f6d6.tar.gz
mana-client-06fff57500242c37890459ceffdfff2bdf19f6d6.tar.bz2
mana-client-06fff57500242c37890459ceffdfff2bdf19f6d6.tar.xz
mana-client-06fff57500242c37890459ceffdfff2bdf19f6d6.zip
Made the first XP notification don't show anymore.
Resolves: Mana-Mantis #158.
Diffstat (limited to 'src/net/manaserv')
-rw-r--r--src/net/manaserv/playerhandler.cpp8
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;