summaryrefslogtreecommitdiff
path: root/src/game-server/gamehandler.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-07-27 15:17:28 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-07-27 15:17:28 +0200
commit6cfd0e573fd1baece2fecd7adc777e700d9ccdd1 (patch)
tree205d7beff70d94429882e719a43398d2b152645a /src/game-server/gamehandler.cpp
parentd49f23c7668418ff4f114ba1ae7164038fae94ae (diff)
downloadmanaserv-6cfd0e573fd1baece2fecd7adc777e700d9ccdd1.tar.gz
manaserv-6cfd0e573fd1baece2fecd7adc777e700d9ccdd1.tar.bz2
manaserv-6cfd0e573fd1baece2fecd7adc777e700d9ccdd1.tar.xz
manaserv-6cfd0e573fd1baece2fecd7adc777e700d9ccdd1.zip
Forgot to update the gamehandler.cpp file.
Diffstat (limited to 'src/game-server/gamehandler.cpp')
-rw-r--r--src/game-server/gamehandler.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game-server/gamehandler.cpp b/src/game-server/gamehandler.cpp
index 58d289f0..30a620cd 100644
--- a/src/game-server/gamehandler.cpp
+++ b/src/game-server/gamehandler.cpp
@@ -489,7 +489,7 @@ void GameHandler::handlePickup(GameClient &client, MessageIn &message)
void GameHandler::handleUseItem(GameClient &client, MessageIn &message)
{
- const int slot = message.readInt8();
+ const int slot = message.readInt16();
Inventory inv(client.character);
if (ItemClass *ic = itemManager->getItem(inv.getItem(slot)))
@@ -509,8 +509,8 @@ void GameHandler::handleUseItem(GameClient &client, MessageIn &message)
void GameHandler::handleDrop(GameClient &client, MessageIn &message)
{
- const int slot = message.readInt8();
- const int amount = message.readInt8();
+ const int slot = message.readInt16();
+ const int amount = message.readInt16();
Inventory inv(client.character);
if (ItemClass *ic = itemManager->getItem(inv.getItem(slot)))
@@ -547,22 +547,22 @@ void GameHandler::handleWalk(GameClient &client, MessageIn &message)
void GameHandler::handleEquip(GameClient &client, MessageIn &message)
{
- const int slot = message.readInt8();
+ const int slot = message.readInt16();
Inventory(client.character).equip(slot);
}
void GameHandler::handleUnequip(GameClient &client, MessageIn &message)
{
- const int slot = message.readInt8();
+ const int slot = message.readInt16();
if (slot >= 0 && slot < INVENTORY_SLOTS)
Inventory(client.character).unequip(slot);
}
void GameHandler::handleMoveItem(GameClient &client, MessageIn &message)
{
- const int slot1 = message.readInt8();
- const int slot2 = message.readInt8();
- const int amount = message.readInt8();
+ const int slot1 = message.readInt16();
+ const int slot2 = message.readInt16();
+ const int amount = message.readInt16();
Inventory(client.character).move(slot1, slot2, amount);
// log transaction