diff options
author | shennetsind <ind@henn.et> | 2013-11-15 23:05:55 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-11-15 23:05:55 -0200 |
commit | 7120b55ce40a6a0c4086da49d57c74baa72609d6 (patch) | |
tree | f815189db7ad9c88673cfc61609b02b64bc44352 /src/map/map.c | |
parent | f0591e607e05e34d987a7575fbaf9af53daa5908 (diff) | |
download | hercules-7120b55ce40a6a0c4086da49d57c74baa72609d6.tar.gz hercules-7120b55ce40a6a0c4086da49d57c74baa72609d6.tar.bz2 hercules-7120b55ce40a6a0c4086da49d57c74baa72609d6.tar.xz hercules-7120b55ce40a6a0c4086da49d57c74baa72609d6.zip |
Official expiration timer support
As brought up in http://hercules.ws/board/topic/2225-paid-server/
Special Thanks to Haruna for all the help!
Thanks to Beret, Ai4rei for information
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c index 24fbeefa0..17648a661 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1663,6 +1663,9 @@ int map_quit(struct map_session_data *sd) { //Non-active players should not have loaded any data yet (or it was cleared already) so no additional cleanups are needed. return 0; } + + if( sd->expiration_tid != INVALID_TIMER ) + timer->delete(sd->expiration_tid,pc->expiration_timer); if (sd->npc_timer_id != INVALID_TIMER) //Cancel the event timer. npc->timerevent_quit(sd); |