summaryrefslogtreecommitdiff
path: root/src/emap/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-20 03:27:40 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-20 03:27:40 +0300
commite7fa48986510956c22298a96ab1ea3b9eda4f1bd (patch)
tree9ad076a071fd5ac331f5c1c883ea49a27178e7f2 /src/emap/clif.c
parent5600abb3f24ef7a759dbd24279f93e9749d438f0 (diff)
downloadevol-hercules-e7fa48986510956c22298a96ab1ea3b9eda4f1bd.tar.gz
evol-hercules-e7fa48986510956c22298a96ab1ea3b9eda4f1bd.tar.bz2
evol-hercules-e7fa48986510956c22298a96ab1ea3b9eda4f1bd.tar.xz
evol-hercules-e7fa48986510956c22298a96ab1ea3b9eda4f1bd.zip
Remove more unused functions.s20170529s20170510s20170424
Diffstat (limited to 'src/emap/clif.c')
-rw-r--r--src/emap/clif.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/emap/clif.c b/src/emap/clif.c
index d194030..f782100 100644
--- a/src/emap/clif.c
+++ b/src/emap/clif.c
@@ -585,41 +585,6 @@ uint16 GetWord(uint32 val, int idx)
}
}
-//To identify disguised characters.
-static inline bool disguised(struct block_list* bl)
-{
- return (bool)(bl &&
- bl->type == BL_PC &&
- ((TBL_PC*)bl)->disguise != -1);
-}
-
-static inline void WBUFPOS(uint8* p, unsigned short pos, short x, short y, unsigned char dir)
-{
- p += pos;
- p[0] = (uint8)(x >> 2);
- p[1] = (uint8)((x << 6) | ((y >> 4) & 0x3f));
- p[2] = (uint8)((y << 4) | (dir & 0xf));
-}
-
-// client-side: x0+=sx0*0.0625-0.5 and y0+=sy0*0.0625-0.5
-static inline void WBUFPOS2(uint8* p, unsigned short pos, short x0, short y0, short x1, short y1, unsigned char sx0, unsigned char sy0)
-{
- p += pos;
- p[0] = (uint8)(x0>>2);
- p[1] = (uint8)((x0<<6) | ((y0>>4)&0x3f));
- p[2] = (uint8)((y0<<4) | ((x1>>6)&0x0f));
- p[3] = (uint8)((x1<<2) | ((y1>>8)&0x03));
- p[4] = (uint8)y1;
- p[5] = (uint8)((sx0<<4) | (sy0&0x0f));
-}
-
-//Modifies the type of damage according to status changes [Skotlex]
-//Aegis data specifies that: 4 endure against single hit sources, 9 against multi-hit.
-static inline int clif_calc_delay(int type, int div, int damage, int delay)
-{
- return (delay == 0 && damage > 0) ? (div > 1 ? 9 : 4) : type;
-}
-
void eclif_set_unit_idle_post(struct block_list *bl,
TBL_PC *tsd,
enum send_target target)