summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-09-27 16:05:03 -0300
committershennetsind <ind@henn.et>2013-09-27 16:05:03 -0300
commit6b00c1c8ef7ebe324c6c02f5a9f1abf9eeb3a581 (patch)
tree730fa021797d5c0253c23a9b22bb232bc9727c22 /src/map/intif.c
parenta4c5e17bba98d65bedf917c03bb60bf0550af688 (diff)
downloadhercules-6b00c1c8ef7ebe324c6c02f5a9f1abf9eeb3a581.tar.gz
hercules-6b00c1c8ef7ebe324c6c02f5a9f1abf9eeb3a581.tar.bz2
hercules-6b00c1c8ef7ebe324c6c02f5a9f1abf9eeb3a581.tar.xz
hercules-6b00c1c8ef7ebe324c6c02f5a9f1abf9eeb3a581.zip
HPM: Chrif.c Completed
Moved missing vars and declarations of interest into the interface. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 097c41edb..97ff8a681 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -46,15 +46,14 @@ static const int packet_len_table[]={
-1,-1, 7, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //0x3890 Homunculus [albator]
};
-extern int char_fd; // inter server Fd used for char_fd
-#define inter_fd char_fd // alias
+#define inter_fd chrif->fd // alias
//-----------------------------------------------------------------
// Send to inter server
int CheckForCharServer(void)
{
- return ((char_fd <= 0) || session[char_fd] == NULL || session[char_fd]->wdata == NULL);
+ return ((chrif->fd <= 0) || session[chrif->fd] == NULL || session[chrif->fd]->wdata == NULL);
}
// pet