summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2017-08-08 16:48:12 +0200
committerGitHub <noreply@github.com>2017-08-08 16:48:12 +0200
commit89ccf19c2780f80aa475c07fcea5750519266807 (patch)
treedeb8adacb1904b4c86e94e3ab8ce29d4ce862be7 /src/map/pc.c
parente1e27fd07bfa1a90eeb2d4bfff32c70258cc07df (diff)
parent544da439e81ff78ec102b754e16b6cc0a28a6d0a (diff)
downloadhercules-89ccf19c2780f80aa475c07fcea5750519266807.tar.gz
hercules-89ccf19c2780f80aa475c07fcea5750519266807.tar.bz2
hercules-89ccf19c2780f80aa475c07fcea5750519266807.tar.xz
hercules-89ccf19c2780f80aa475c07fcea5750519266807.zip
Merge pull request #1686 from guilherme-gm/rodex_
Implementation of RoDEX
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index a925b523c..f332feea8 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1165,6 +1165,8 @@ bool pc_authok(struct map_session_data *sd, int login_id2, time_t expiration_tim
}
memcpy(&sd->status, st, sizeof(*st));
+ memset(&sd->rodex, 0x0, sizeof(sd->rodex));
+ VECTOR_INIT(sd->rodex.messages);
if (st->sex != sd->status.sex) {
clif->authfail_fd(sd->fd, 0);
@@ -1517,6 +1519,7 @@ int pc_reg_received(struct map_session_data *sd)
intif->Mail_requestinbox(sd->status.char_id, 0); // MAIL SYSTEM - Request Mail Inbox
intif->request_questlog(sd);
+ intif->rodex_checkhasnew(sd);
if (sd->state.connect_new == 0 && sd->fd) { //Character already loaded map! Gotta trigger LoadEndAck manually.
sd->state.connect_new = 1;