summaryrefslogtreecommitdiff
path: root/src/map/clif.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-06 00:50:29 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-14 06:00:50 +0300
commit27fb22d9f492cffe206594e5af0f854cf8fa3ce5 (patch)
tree4772665b8623529df9a048e24a9bbd858b406e4c /src/map/clif.h
parenta9caa4ea37115869eb3926ca6e4c53709e7d9337 (diff)
downloadhercules-27fb22d9f492cffe206594e5af0f854cf8fa3ce5.tar.gz
hercules-27fb22d9f492cffe206594e5af0f854cf8fa3ce5.tar.bz2
hercules-27fb22d9f492cffe206594e5af0f854cf8fa3ce5.tar.xz
hercules-27fb22d9f492cffe206594e5af0f854cf8fa3ce5.zip
Use new packet tables for packets len.
Diffstat (limited to 'src/map/clif.h')
-rw-r--r--src/map/clif.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/clif.h b/src/map/clif.h
index b76c5ed70..593dc15c1 100644
--- a/src/map/clif.h
+++ b/src/map/clif.h
@@ -64,7 +64,7 @@ enum rodex_get_items;
/**
* Defines
**/
-#define packet_len(cmd) packet_db[cmd].len
+#define packet_len(cmd) packets->db[cmd]
#define clif_menuskill_clear(sd) ((sd)->menuskill_id = (sd)->menuskill_val = (sd)->menuskill_val2 = 0)
#define clif_disp_onlyself(sd, mes) clif->disp_message(&(sd)->bl, (mes), SELF)
#define MAX_ROULETTE_LEVEL 7 /** client-defined value **/
@@ -626,7 +626,6 @@ enum inventory_type {
**/
typedef void (*pFunc)(int, struct map_session_data *); //cant help but put it first
struct s_packet_db {
- short len;
pFunc func;
short pos[MAX_PACKET_POS];
};