summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-10 10:22:52 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-10 10:22:52 +0000
commitdcc4cecd8e9b3e8ca983272593a26c5fdadcae4b (patch)
treeaaa19508e08b9349c973f6935ef69cb2fcbb4f70 /src/map/clif.c
parentcb287435a0c8a2901c7e105ebbe66ed0711e2d2e (diff)
downloadhercules-dcc4cecd8e9b3e8ca983272593a26c5fdadcae4b.tar.gz
hercules-dcc4cecd8e9b3e8ca983272593a26c5fdadcae4b.tar.bz2
hercules-dcc4cecd8e9b3e8ca983272593a26c5fdadcae4b.tar.xz
hercules-dcc4cecd8e9b3e8ca983272593a26c5fdadcae4b.zip
- Reverted last change, I was wrong in my assumption o_O;
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11883 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 3ff743568..7b89a270c 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -934,7 +934,7 @@ static int clif_set_unit_walking(struct block_list* bl, struct unit_data* ud, un
//Modifies the buffer for disguise characters and sends it to self.
//Flag = 0: change id to negative, buf will have disguise data.
//Flag = 1: change id to positive, class and option to make your own char invisible.
-static void clif_setdisguise(struct map_session_data *sd, unsigned char *buf,int len, int flag)
+static void clif_setdisguise(struct map_session_data *sd, unsigned char *buf,int len, bool flag)
{
if (!flag) {
WBUFL(buf,2)=-sd->bl.id;
@@ -1322,10 +1322,8 @@ void clif_move(struct unit_data *ud)
WBUFPOS2(buf,6,bl->x,bl->y,ud->to_x,ud->to_y,8,8);
WBUFL(buf,12)=gettick();
clif_send(buf, 16, bl, AREA_WOS);
- if (disguised(bl)) {
- WBUFL(buf,2)=-bl->id;
- clif_send(buf, 16, bl, SELF);
- }
+ if (disguised(bl))
+ clif_setdisguise((TBL_PC*)bl, buf, 16, 0);
}
/*==========================================