diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-01-10 20:47:59 +0000 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-01-10 20:48:37 +0000 |
commit | 4c6165ece76dff406d324c240a7fc099a3e0c42b (patch) | |
tree | ceff7fbaa928d2397552c34e51210a419e630a41 /src/net/manaserv | |
parent | 023ca895db6aaf1c4ed5a2240cf85443f83e84db (diff) | |
download | mana-4c6165ece76dff406d324c240a7fc099a3e0c42b.tar.gz mana-4c6165ece76dff406d324c240a7fc099a3e0c42b.tar.bz2 mana-4c6165ece76dff406d324c240a7fc099a3e0c42b.tar.xz mana-4c6165ece76dff406d324c240a7fc099a3e0c42b.zip |
Remove some support ifdefs
Diffstat (limited to 'src/net/manaserv')
-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; |