diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2015-12-04 20:42:30 +0530 |
---|---|---|
committer | Dastgir <dastgirpojee@rocketmail.com> | 2015-12-04 21:14:10 +0530 |
commit | a38909503d98e8fe823c9f59bb94af8675563828 (patch) | |
tree | aabdae0ead911f4a18966d091283787e72ebcf51 /src/map/atcommand.c | |
parent | 6abd0fb8b1bbfe2101cc68503897b0449027fb3d (diff) | |
download | hercules-a38909503d98e8fe823c9f59bb94af8675563828.tar.gz hercules-a38909503d98e8fe823c9f59bb94af8675563828.tar.bz2 hercules-a38909503d98e8fe823c9f59bb94af8675563828.tar.xz hercules-a38909503d98e8fe823c9f59bb94af8675563828.zip |
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 ff88f2c63..ac64bef75 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)); |