From aa574b7eb285fa8b8af52b404a6f5b3252d295fa Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Fri, 30 Sep 2011 15:17:51 +0200 Subject: 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. --- src/net/manaserv/playerhandler.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2