summaryrefslogtreecommitdiff
path: root/src/net/equipmenthandler.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-26 22:22:22 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-06 00:27:26 +0100
commitc75511fffc77d517fbf854ec8bef791f055de44c (patch)
treec431846c7d7a6934f103d21129a20a0dc4fd1c8e /src/net/equipmenthandler.cpp
parent646cc317351d60e0fefcab789248310662fcbbc8 (diff)
downloadmana-c75511fffc77d517fbf854ec8bef791f055de44c.tar.gz
mana-c75511fffc77d517fbf854ec8bef791f055de44c.tar.bz2
mana-c75511fffc77d517fbf854ec8bef791f055de44c.tar.xz
mana-c75511fffc77d517fbf854ec8bef791f055de44c.zip
Got rid of Sint{8,16,32} and Uint32 for being ID
Using unsigned rarely makes sense, especially when the server doesn't use it either. Other uses of unsigned should be reviewed. In all other cases, int is the fastest integer type on any architecture. Using 8 or 16 bits can basically only be a memory optimization.
Diffstat (limited to 'src/net/equipmenthandler.cpp')
-rw-r--r--src/net/equipmenthandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/equipmenthandler.cpp b/src/net/equipmenthandler.cpp
index 9a3c396a..a31da38e 100644
--- a/src/net/equipmenthandler.cpp
+++ b/src/net/equipmenthandler.cpp
@@ -48,9 +48,9 @@ EquipmentHandler::EquipmentHandler()
void EquipmentHandler::handleMessage(MessageIn *msg)
{
- Sint32 itemCount;
- Sint16 index, equipPoint, itemId;
- Sint8 type;
+ int itemCount;
+ int index, equipPoint, itemId;
+ int type;
int mask, position;
Item *item;
Inventory *inventory = player_node->getInventory();