diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-01-14 08:54:54 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-01-14 08:54:54 +0000 |
commit | c59ea57a893908f54d2960a1e18d2473a1bb8196 (patch) | |
tree | ffd267754c4bc8b70d559e9e416f326c82757ecb /src/map/clif.c | |
parent | dde2e2fa9619a504765b676caa3ac0b05b67cfbc (diff) | |
download | hercules-c59ea57a893908f54d2960a1e18d2473a1bb8196.tar.gz hercules-c59ea57a893908f54d2960a1e18d2473a1bb8196.tar.bz2 hercules-c59ea57a893908f54d2960a1e18d2473a1bb8196.tar.xz hercules-c59ea57a893908f54d2960a1e18d2473a1bb8196.zip |
Simplified the BL_CAST macro (see topic:166795)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12072 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 002210485..4cbfbd198 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -279,7 +279,7 @@ int clif_send(const uint8* buf, int len, struct block_list* bl, enum send_target if( type != ALL_CLIENT && type != CHAT_MAINCHAT ) nullpo_retr(0, bl); - BL_CAST(BL_PC, bl, sd); + sd = BL_CAST(BL_PC, bl); switch(type) { case ALL_CLIENT: //All player clients. @@ -758,7 +758,7 @@ static int clif_set_unit_idle(struct block_list* bl, unsigned char* buffer, bool #if PACKETVER >= 7 unsigned short offset = 0; #endif - BL_CAST(BL_PC, bl, sd); + sd = BL_CAST(BL_PC, bl); if(type) WBUFW(buf,0) = spawn?0x7c:0x78; @@ -869,7 +869,7 @@ static int clif_set_unit_walking(struct block_list* bl, struct unit_data* ud, un unsigned short offset = 0; #endif - BL_CAST(BL_PC, bl, sd); + sd = BL_CAST(BL_PC, bl); #if PACKETVER < 4 WBUFW(buf, 0) = 0x7b; @@ -2388,7 +2388,7 @@ void clif_changelook(struct block_list *bl,int type,int val) struct view_data* vd; nullpo_retv(bl); - BL_CAST(BL_PC, bl, sd); + sd = BL_CAST(BL_PC, bl); vd = status_get_viewdata(bl); //nullpo_ret(vd); if( vd ) //temp hack to let Warp Portal change appearance @@ -3787,8 +3787,8 @@ int clif_outsight(struct block_list *bl,va_list ap) TBL_PC *sd, *tsd; tbl=va_arg(ap,struct block_list*); if(bl == tbl) return 0; - BL_CAST(BL_PC, bl, sd); - BL_CAST(BL_PC, tbl, tsd); + sd = BL_CAST(BL_PC, bl); + tsd = BL_CAST(BL_PC, tbl); if (tsd && tsd->fd) { //tsd has lost sight of the bl object. @@ -3836,8 +3836,8 @@ int clif_insight(struct block_list *bl,va_list ap) if (bl == tbl) return 0; - BL_CAST(BL_PC, bl, sd); - BL_CAST(BL_PC, tbl, tsd); + sd = BL_CAST(BL_PC, bl); + tsd = BL_CAST(BL_PC, tbl); if (tsd && tsd->fd) { //Tell tsd that bl entered into his view |