diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/manaserv/gamehandler.cpp | 4 | ||||
-rw-r--r-- | src/net/manaserv/playerhandler.cpp | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/net/manaserv/gamehandler.cpp b/src/net/manaserv/gamehandler.cpp index 51b9d1c9..700d2d6c 100644 --- a/src/net/manaserv/gamehandler.cpp +++ b/src/net/manaserv/gamehandler.cpp @@ -26,6 +26,7 @@ #include "net/manaserv/messageout.h" #include "net/manaserv/protocol.h" +#include "localplayer.h" #include "main.h" extern Net::GameHandler *gameHandler; @@ -113,6 +114,9 @@ void GameHandler::inGame() gameServerConnection->send(msg); chatHandler->connect(); + + // Attack range from item DB + player_node->setAttackRange(-1); } void GameHandler::mapLoaded(const std::string &mapName) diff --git a/src/net/manaserv/playerhandler.cpp b/src/net/manaserv/playerhandler.cpp index 671d02a3..62110f8f 100644 --- a/src/net/manaserv/playerhandler.cpp +++ b/src/net/manaserv/playerhandler.cpp @@ -180,8 +180,7 @@ void PlayerHandler::handleMessage(Net::MessageIn &msg) case GPMSG_LEVEL_PROGRESS: { - logger->log("Level Progress Update"); - player_node->setExp(msg.readInt8()); + player_node->setExp(msg.readInt8(), false); } break; |