summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-11 12:16:03 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-11 12:16:03 +0300
commit4a337b7a42d0c92bc2ed26b7e206188dc04c569d (patch)
tree97c59c86246afce0710795c6ba545d40004c6810 /src/net/eathena/inventoryhandler.cpp
parent067410031057ffc9bdb36b976bc2a658b23acb1b (diff)
downloadplus-4a337b7a42d0c92bc2ed26b7e206188dc04c569d.tar.gz
plus-4a337b7a42d0c92bc2ed26b7e206188dc04c569d.tar.bz2
plus-4a337b7a42d0c92bc2ed26b7e206188dc04c569d.tar.xz
plus-4a337b7a42d0c92bc2ed26b7e206188dc04c569d.zip
Add typed bool type Equipm.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 162b69f2b..835b341a8 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -386,7 +386,8 @@ void InventoryHandler::processPlayerEquipment(Net::MessageIn &msg)
fromBool(flags.bits.isIdentified, Identified),
fromBool(flags.bits.isDamaged, Damaged),
fromBool(flags.bits.isFavorite, Favorite),
- true, false);
+ Equipm_true,
+ false);
inventory->setCards(index, cards, 4);
}
@@ -486,7 +487,8 @@ void InventoryHandler::processPlayerInventoryAdd(Net::MessageIn &msg)
fromBool(identified, Identified),
fromBool(damaged, Damaged),
Favorite_false,
- equipType != 0, false);
+ fromBool(equipType, Equipm),
+ false);
inventory->setCards(index, cards, 4);
}
ArrowsListener::distributeEvent();
@@ -534,7 +536,8 @@ void InventoryHandler::processPlayerInventory(Net::MessageIn &msg)
fromBool(flags.bits.isIdentified, Identified),
fromBool(flags.bits.isDamaged, Damaged),
fromBool(flags.bits.isFavorite, Favorite),
- false, false);
+ Equipm_false,
+ false);
inventory->setCards(index, cards, 4);
}
}
@@ -570,7 +573,7 @@ void InventoryHandler::processPlayerStorage(Net::MessageIn &msg)
fromBool(flags.bits.isIdentified, Identified),
fromBool(flags.bits.isDamaged, Damaged),
fromBool(flags.bits.isFavorite, Favorite),
- false));
+ Equipm_false));
}
BLOCK_END("InventoryHandler::processPlayerInventory")
}
@@ -671,7 +674,7 @@ void InventoryHandler::processPlayerStorageEquip(Net::MessageIn &msg)
fromBool(flags.bits.isIdentified, Identified),
fromBool(flags.bits.isDamaged, Damaged),
fromBool(flags.bits.isFavorite, Favorite),
- false));
+ Equipm_false));
}
BLOCK_END("InventoryHandler::processPlayerStorageEquip")
}
@@ -705,7 +708,8 @@ void InventoryHandler::processPlayerStorageAdd(Net::MessageIn &msg)
fromBool(identified, Identified),
Damaged_false,
Favorite_false,
- false, false);
+ Equipm_false,
+ false);
mStorage->setCards(index, cards, 4);
}
}
@@ -848,7 +852,8 @@ void InventoryHandler::processPlayerCartAdd(Net::MessageIn &msg)
fromBool(identified, Identified),
Damaged_false,
Favorite_false,
- false, false);
+ Equipm_false,
+ false);
inventory->setCards(index, cards, 4);
}
BLOCK_END("InventoryHandler::processPlayerCartAdd")
@@ -882,7 +887,7 @@ void InventoryHandler::processPlayerCartEquip(Net::MessageIn &msg)
fromBool(flags.bits.isIdentified, Identified),
fromBool(flags.bits.isDamaged, Damaged),
fromBool(flags.bits.isFavorite, Favorite),
- false));
+ Equipm_false));
}
BLOCK_END("InventoryHandler::processPlayerCartEquip")
}
@@ -914,7 +919,7 @@ void InventoryHandler::processPlayerCartItems(Net::MessageIn &msg)
fromBool(flags.bits.isIdentified, Identified),
fromBool(flags.bits.isDamaged, Damaged),
fromBool(flags.bits.isFavorite, Favorite),
- false));
+ Equipm_false));
}
BLOCK_END("InventoryHandler::processPlayerCartItems")
}