summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-14 12:57:50 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-14 12:57:50 +0000
commit3b800b8ffa7b6d2a21e4c66d830871a8cf51eaf1 (patch)
tree2d37f74ab98fd5d953b2f6e57ca4aca49d2f2d03 /src/map/clif.c
parent8add7789e56d8f40024cd68f2fdf647245f33a11 (diff)
downloadhercules-3b800b8ffa7b6d2a21e4c66d830871a8cf51eaf1.tar.gz
hercules-3b800b8ffa7b6d2a21e4c66d830871a8cf51eaf1.tar.bz2
hercules-3b800b8ffa7b6d2a21e4c66d830871a8cf51eaf1.tar.xz
hercules-3b800b8ffa7b6d2a21e4c66d830871a8cf51eaf1.zip
* Bugfix on fake npc
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6585 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index bb7ba3287..6ce6c6e59 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -763,13 +763,19 @@ int clif_clearchar_delay(unsigned int tick, struct block_list *bl, int type) {
*------------------------------------------
*/
int clif_clearchar_id(int id, int type, int fd) {
- unsigned char buf[16];
+ /*unsigned char buf[16];
WBUFW(buf,0) = 0x80;
WBUFL(buf,2) = id;
WBUFB(buf,6) = type;
WFIFOHEAD(fd, packet_len_table[0x80]);
memcpy(WFIFOP(fd,0), buf, 7);
+ WFIFOSET(fd, packet_len_table[0x80]);*/
+
+ WFIFOHEAD(fd, packet_len_table[0x80]);
+ WFIFOW(fd,0) = 0x80;
+ WFIFOL(fd,2) = id;
+ WFIFOB(fd,6) = (char)type; // Why use int for a char in the first place?
WFIFOSET(fd, packet_len_table[0x80]);
return 0;