summaryrefslogtreecommitdiff
path: root/src/emap/inter.c
blob: 8f36be92315b8bc4ad5fda21ff889972fbedc824 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// Copyright (c) 2014 - 2015 Evol developers

#include "common/hercules.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "common/HPMi.h"
#include "common/memmgr.h"
#include "common/nullpo.h"
#include "common/socket.h"
#include "common/strlib.h"
#include "map/chrif.h"

void send_char_exit(const int code)
{
    WFIFOHEAD(chrif->fd, 4);
    WFIFOW(chrif->fd, 0) = 0x5002;
    WFIFOW(chrif->fd, 2) = code;
    WFIFOSET(chrif->fd, 4);
}