diff options
author | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2012-01-01 20:20:21 +0100 |
---|---|---|
committer | Yohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer> | 2012-01-10 20:31:51 +0100 |
commit | 683da50e37fbbb2e3f70a4421a06dabd9bb912d8 (patch) | |
tree | 065526585f7af480df2eae40ed0acc1595331fd4 /src/net/manaserv/beinghandler.cpp | |
parent | 8a88347e9ee6ce9f14d638cf602f3a763bc3ff01 (diff) | |
download | mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.gz mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.bz2 mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.xz mana-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.zip |
player_node -> local_player
Reviewed-by: Ablu
Diffstat (limited to 'src/net/manaserv/beinghandler.cpp')
-rw-r--r-- | src/net/manaserv/beinghandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/manaserv/beinghandler.cpp b/src/net/manaserv/beinghandler.cpp index 91c7d621..3e635d43 100644 --- a/src/net/manaserv/beinghandler.cpp +++ b/src/net/manaserv/beinghandler.cpp @@ -132,9 +132,9 @@ void BeingHandler::handleBeingEnterMessage(Net::MessageIn &msg) case OBJECT_CHARACTER: { std::string name = msg.readString(); - if (player_node->getName() == name) + if (local_player->getName() == name) { - being = player_node; + being = local_player; being->setId(id); } else @@ -222,7 +222,7 @@ void BeingHandler::handleBeingsMoveMessage(Net::MessageIn &msg) } // Ignore messages from the server for the local player - if (being == player_node) + if (being == local_player) continue; // If the position differs too much from the actual one, we resync @@ -294,7 +294,7 @@ void BeingHandler::handleBeingActionChangeMessage(Net::MessageIn &msg) being->setAction(action); - if (action == Being::DEAD && being == player_node) + if (action == Being::DEAD && being == local_player) { static char const *const deadMsg[] = { @@ -346,7 +346,7 @@ void BeingHandler::handleBeingDirChangeMessage(Net::MessageIn &msg) int data = msg.readInt8(); // The direction for the player's character is handled on client side. - if (being != player_node) + if (being != local_player) being->setDirection((BeingDirection) data); } |