diff options
author | shennetsind <ind@henn.et> | 2013-06-21 10:31:54 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-06-21 10:31:54 -0300 |
commit | 3c8c0539e9ec580bbb10fad980040bf2a668ad86 (patch) | |
tree | 1f8eb45a1e06ad9e4fda1aa82cd5cbb36cbce734 | |
parent | a3d689043402ec7de5b04bcc68016f6e8541ec47 (diff) | |
download | hercules-3c8c0539e9ec580bbb10fad980040bf2a668ad86.tar.gz hercules-3c8c0539e9ec580bbb10fad980040bf2a668ad86.tar.bz2 hercules-3c8c0539e9ec580bbb10fad980040bf2a668ad86.tar.xz hercules-3c8c0539e9ec580bbb10fad980040bf2a668ad86.zip |
Fixed Bug #7406
sd->idletime would be empty until first clif action, now it starts right on pc_authok.
http://hercules.ws/board/tracker/issue-7406-checkidle-acting-weird-onpcloginevent/
Signed-off-by: shennetsind <ind@henn.et>
-rw-r--r-- | src/map/pc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index c2d50a7ce..d8e2a0537 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -986,6 +986,8 @@ bool pc_authok(struct map_session_data *sd, int login_id2, time_t expiration_tim sd->cansendmail_tick = tick; sd->hchsysch_tick = tick; + sd->idletime = last_tick; + for(i = 0; i < MAX_SPIRITBALL; i++) sd->spirit_timer[i] = INVALID_TIMER; for(i = 0; i < ARRAYLENGTH(sd->autobonus); i++) |