diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-05 21:29:45 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-12-05 21:29:45 +0000 |
commit | 8d11ccf2e1bd71bde6d765bebe7f8a4ac0bc5d2f (patch) | |
tree | f56691500c0ce9f9a8d3b93b817df161696842d0 /src/map | |
parent | be41590cac32e25a7bbee9967e31855b037b4463 (diff) | |
download | hercules-8d11ccf2e1bd71bde6d765bebe7f8a4ac0bc5d2f.tar.gz hercules-8d11ccf2e1bd71bde6d765bebe7f8a4ac0bc5d2f.tar.bz2 hercules-8d11ccf2e1bd71bde6d765bebe7f8a4ac0bc5d2f.tar.xz hercules-8d11ccf2e1bd71bde6d765bebe7f8a4ac0bc5d2f.zip |
- The can log value now is "reset" when you die allowing you to respawn/quit instantly after death.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9413 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/pc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index b0c20ed41..196687c24 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -5133,6 +5133,9 @@ int pc_dead(struct map_session_data *sd,struct block_list *src) return 0; } + //Reset "can log out" tick. + if (battle_config.prevent_logout) + sd->canlog_tick = gettick() - battle_config.prevent_logout; return 1; } |