diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-04 18:47:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-04 18:47:48 +0300 |
commit | da6300af9e1529fa2f98cb7481b8a89e17627aa5 (patch) | |
tree | be0733a09d5e7a4eb560e8ea7a8a4b0a88743a0a /src/map/atcommand.c | |
parent | 1e2f24a2fcb13b8a2fe06f4cc829670303760929 (diff) | |
parent | a38909503d98e8fe823c9f59bb94af8675563828 (diff) | |
download | hercules-da6300af9e1529fa2f98cb7481b8a89e17627aa5.tar.gz hercules-da6300af9e1529fa2f98cb7481b8a89e17627aa5.tar.bz2 hercules-da6300af9e1529fa2f98cb7481b8a89e17627aa5.tar.xz hercules-da6300af9e1529fa2f98cb7481b8a89e17627aa5.zip |
Merge pull request #910 from dastgir/idle
Added a function to update idle time
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index de71819de..61ac124ca 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -9866,8 +9866,7 @@ bool atcommand_exec(const int fd, struct map_session_data *sd, const char *messa sprintf(atcmd_msg, "%s", message); } - if( battle_config.idletime_criteria & BCIDLE_ATCOMMAND ) - sd->idletime = sockt->last_tick; + pc->update_idle_time(sd, BCIDLE_ATCOMMAND); //Clearing these to be used once more. memset(command, '\0', sizeof(command)); |