summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-09-30 15:17:51 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-09-30 15:17:51 +0200
commitaa574b7eb285fa8b8af52b404a6f5b3252d295fa (patch)
tree58c4b61e1893d4e92e6fcdc6117379746cd1e66e
parentfd394bcd24cb135f01e684717b4dadb7d2200367 (diff)
downloadmana-aa574b7eb285fa8b8af52b404a6f5b3252d295fa.tar.gz
mana-aa574b7eb285fa8b8af52b404a6f5b3252d295fa.tar.bz2
mana-aa574b7eb285fa8b8af52b404a6f5b3252d295fa.tar.xz
mana-aa574b7eb285fa8b8af52b404a6f5b3252d295fa.zip
Revert "Made the first XP notification don't show anymore."
This reverts commit 06fff57500242c37890459ceffdfff2bdf19f6d6. At least I tried :) I'd like to have a clear discussion about how we could initialize the skill and attributes values, without spamming the user.
-rw-r--r--src/net/manaserv/playerhandler.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/net/manaserv/playerhandler.cpp b/src/net/manaserv/playerhandler.cpp
index 9847ca35..d7c3dab6 100644
--- a/src/net/manaserv/playerhandler.cpp
+++ b/src/net/manaserv/playerhandler.cpp
@@ -160,13 +160,7 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg)
case GPMSG_LEVEL_PROGRESS:
{
- // 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());
+ PlayerInfo::setAttribute(EXP, msg.readInt8());
} break;