summaryrefslogtreecommitdiff
path: root/src/net/tmwa/beinghandler.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-01 20:20:21 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2012-01-10 20:31:51 +0100
commit683da50e37fbbb2e3f70a4421a06dabd9bb912d8 (patch)
tree065526585f7af480df2eae40ed0acc1595331fd4 /src/net/tmwa/beinghandler.cpp
parent8a88347e9ee6ce9f14d638cf602f3a763bc3ff01 (diff)
downloadmana-client-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.gz
mana-client-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.bz2
mana-client-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.tar.xz
mana-client-683da50e37fbbb2e3f70a4421a06dabd9bb912d8.zip
player_node -> local_player
Reviewed-by: Ablu
Diffstat (limited to 'src/net/tmwa/beinghandler.cpp')
-rw-r--r--src/net/tmwa/beinghandler.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/net/tmwa/beinghandler.cpp b/src/net/tmwa/beinghandler.cpp
index 41345acb..e3e92a0b 100644
--- a/src/net/tmwa/beinghandler.cpp
+++ b/src/net/tmwa/beinghandler.cpp
@@ -318,8 +318,8 @@ void BeingHandler::handleMessage(Net::MessageIn &msg)
break;
// If this is player's current target, clear it.
- if (dstBeing == player_node->getTarget())
- player_node->stopAttack();
+ if (dstBeing == local_player->getTarget())
+ local_player->stopAttack();
if (msg.readInt8() == 1)
dstBeing->setAction(Being::DEAD);
@@ -336,8 +336,8 @@ void BeingHandler::handleMessage(Net::MessageIn &msg)
break;
// If this is player's current target, clear it.
- if (dstBeing == player_node->getTarget())
- player_node->stopAttack();
+ if (dstBeing == local_player->getTarget())
+ local_player->stopAttack();
if (msg.readInt8() == 1)
dstBeing->setAction(Being::STAND);
@@ -356,7 +356,7 @@ void BeingHandler::handleMessage(Net::MessageIn &msg)
msg.readInt16(); // Skill level
msg.readInt16(); // Div
msg.readInt8(); // Skill hit/type (?)
- if (attackSpeed && srcBeing && srcBeing != player_node)
+ if (attackSpeed && srcBeing && srcBeing != local_player)
srcBeing->setAttackSpeed(attackSpeed);
if (dstBeing)
dstBeing->takeDamage(srcBeing, param1, Being::HIT); // Perhaps a new skill attack type should be created and used?
@@ -566,7 +566,7 @@ void BeingHandler::handleMessage(Net::MessageIn &msg)
break;
}
- if (Party *party = player_node->getParty()){
+ if (Party *party = local_player->getParty()){
if (party->isMember(id))
{
dstBeing->setParty(party);
@@ -674,7 +674,7 @@ void BeingHandler::handleMessage(Net::MessageIn &msg)
*/
id = msg.readInt32();
- if (mSync || id != player_node->getId())
+ if (mSync || id != local_player->getId())
{
dstBeing = actorSpriteManager->findBeing(id);
if (dstBeing)