summaryrefslogtreecommitdiff
path: root/src/net/tmwa/inventoryhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/inventoryhandler.cpp')
-rw-r--r--src/net/tmwa/inventoryhandler.cpp10
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;