diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 23:25:43 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 23:28:19 +0100 |
commit | 4f02ad59df9ee3314fb0d429a031ecbfa3206e3a (patch) | |
tree | 90b7afc312b7385061d25db753e8d1e500c83e69 /src/equipment.h | |
parent | f67237cb69599753192c301f0f2eb38b88f7b57a (diff) | |
download | mana-4f02ad59df9ee3314fb0d429a031ecbfa3206e3a.tar.gz mana-4f02ad59df9ee3314fb0d429a031ecbfa3206e3a.tar.bz2 mana-4f02ad59df9ee3314fb0d429a031ecbfa3206e3a.tar.xz mana-4f02ad59df9ee3314fb0d429a031ecbfa3206e3a.zip |
Moved the inventory and storage offset handling into netcode
No need to complicate the item containers and inventory classes with a
silly offset used by the eAthena server.
Also fixed the logToStandardOut option by reading it from the config
after the configuration has been initialized.
Diffstat (limited to 'src/equipment.h')
-rw-r--r-- | src/equipment.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/equipment.h b/src/equipment.h index 7605175a..63555361 100644 --- a/src/equipment.h +++ b/src/equipment.h @@ -75,7 +75,7 @@ class Equipment /** * Remove equipment from the given slot. */ - void removeEquipment(int index) { if (index >= 0 && index < EQUIPMENT_SIZE) mEquipment[index] = 0; } + void removeEquipment(int index); /** * Returns the item used in the arrow slot. @@ -90,7 +90,7 @@ class Equipment private: #ifdef TMWSERV_SUPPORT - Item* mEquipment[EQUIPMENT_SIZE]; + Item *mEquipment[EQUIPMENT_SIZE]; #else int mEquipment[EQUIPMENT_SIZE]; int mArrows; |