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/tmwa/inventoryhandler.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/tmwa/inventoryhandler.cpp')
-rw-r--r-- | src/net/tmwa/inventoryhandler.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp index 76eb85f5..191266bc 100644 --- a/src/net/tmwa/inventoryhandler.cpp +++ b/src/net/tmwa/inventoryhandler.cpp @@ -230,11 +230,11 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) unsigned char err = msg.readInt8(); if (err) { - player_node->pickedUp(itemInfo, 0, err); + local_player->pickedUp(itemInfo, 0, err); } else { - player_node->pickedUp(itemInfo, amount, PICKUP_OKAY); + local_player->pickedUp(itemInfo, amount, PICKUP_OKAY); Item *item = inventory->getItem(index); @@ -420,7 +420,7 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) { mEquips.setEquipment(getSlot(equipType), -1); // Reset the attack range to unarmed. - player_node->setAttackRange(ATTACK_RANGE_NOT_SET); + local_player->setAttackRange(ATTACK_RANGE_NOT_SET); } break; @@ -430,14 +430,14 @@ void InventoryHandler::handleMessage(Net::MessageIn &msg) Map *map = Game::instance()->getCurrentMap(); if (map) { - player_node->setAttackRange(msg.readInt16() + local_player->setAttackRange(msg.readInt16() * map->getTileWidth()); } else { logger->log("Couldn't set attacke range due to the lack" "of an initialized map."); - player_node->setAttackRange(ATTACK_RANGE_NOT_SET); + local_player->setAttackRange(ATTACK_RANGE_NOT_SET); } } break; |