summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-04 23:12:46 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-04 23:12:46 -0600
commitdc2009d1a3b30b0742c3e59788e6277f7c497f6e (patch)
tree11b1f2604a6fd1ba93ee764b77f741a06fa7e715 /src/char/char.c
parentaa6a162574e872fc37d98c1a15cb00b6fc57863d (diff)
downloadtmwa-dc2009d1a3b30b0742c3e59788e6277f7c497f6e.tar.gz
tmwa-dc2009d1a3b30b0742c3e59788e6277f7c497f6e.tar.bz2
tmwa-dc2009d1a3b30b0742c3e59788e6277f7c497f6e.tar.xz
tmwa-dc2009d1a3b30b0742c3e59788e6277f7c497f6e.zip
Send a better packet when a character is deleted
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 366fd8f..f7cb491 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1487,10 +1487,10 @@ static int char_delete(struct mmo_charstatus *cs) {
if (cs->partner_id)
char_divorce(cs);
- // Fake account deletion to kick all active chars on the account (closes a loophole that allows chars to exist on a map server after being deleted)
+ // Force the character (and all on the same account) to leave all map servers
{
unsigned char buf[6];
- WBUFW(buf,0) = 0x2b13;
+ WBUFW(buf,0) = 0x2afe;
WBUFL(buf,2) = cs->account_id;
mapif_sendall(buf, 6);
}