diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-11-02 02:25:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-11-04 23:24:24 +0300 |
commit | e8346ea6e4019fc98a97cbe3e0c4dad028df1652 (patch) | |
tree | 1254050a02ee42191a0f5952dc0918691d1c9c82 /src/map/clif.c | |
parent | 41f3237e4537d7105fb47d56b455d31cf33c155c (diff) | |
download | hercules-e8346ea6e4019fc98a97cbe3e0c4dad028df1652.tar.gz hercules-e8346ea6e4019fc98a97cbe3e0c4dad028df1652.tar.bz2 hercules-e8346ea6e4019fc98a97cbe3e0c4dad028df1652.tar.xz hercules-e8346ea6e4019fc98a97cbe3e0c4dad028df1652.zip |
Allow each npc use own view_data structure.
Allow npc to use player classes (for older than 20170726 npc visible as players).
View_data structure can be copied from predefined view_data lists created new if npc using player type.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 1b7d94ca9..f17ee14e6 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -293,7 +293,11 @@ unsigned char clif_bl_type(struct block_list *bl) case BL_NPC: vd = status->get_viewdata(bl); nullpo_retr(CLUT_NPC, vd); +#if PACKETVER >= 20170726 + return CLUT_EVENT; +#else return pc->db_checkid(vd->class) ? CLUT_PC : CLUT_EVENT; +#endif case BL_PET: vd = status->get_viewdata(bl); nullpo_retr(CLUT_NPC, vd); |