From 3fb675aa416170395d80eb51435a0d09161baf36 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Dec 2015 16:10:08 +0300 Subject: Move inventory index related constants into separate file. --- src/net/ea/buysellrecv.cpp | 2 ++ src/net/ea/eaprotocol.h | 3 --- src/net/ea/inventoryrecv.cpp | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/buysellrecv.cpp b/src/net/ea/buysellrecv.cpp index 28c0409f8..27e74ba6d 100644 --- a/src/net/ea/buysellrecv.cpp +++ b/src/net/ea/buysellrecv.cpp @@ -28,6 +28,8 @@ #include "being/playerinfo.h" +#include "const/net/inventory.h" + #include "enums/resources/notifytypes.h" #include "gui/windows/buydialog.h" diff --git a/src/net/ea/eaprotocol.h b/src/net/ea/eaprotocol.h index 48a7d9262..90b2b37af 100644 --- a/src/net/ea/eaprotocol.h +++ b/src/net/ea/eaprotocol.h @@ -102,7 +102,4 @@ enum EA_SPRITE_VECTOREND }; -static const int INVENTORY_OFFSET = 2; -static const int STORAGE_OFFSET = 1; - #endif // NET_EA_EAPROTOCOL_H diff --git a/src/net/ea/inventoryrecv.cpp b/src/net/ea/inventoryrecv.cpp index bda53bab3..65ba9078d 100644 --- a/src/net/ea/inventoryrecv.cpp +++ b/src/net/ea/inventoryrecv.cpp @@ -26,6 +26,8 @@ #include "being/localplayer.h" +#include "const/net/inventory.h" + #include "enums/equipslot.h" #include "enums/resources/notifytypes.h" -- cgit v1.2.3-70-g09d2