summaryrefslogtreecommitdiff
path: root/src/char
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-27 09:21:18 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-27 09:21:18 +0000
commit4f59f46d78c8ca16c0acce0e5e196503aacc17c0 (patch)
tree6e1241cd51a93ebc8bda9c393b656786a9ca12f0 /src/char
parente8524f706aa516778e6e5e926edff2a839989ed8 (diff)
downloadhercules-4f59f46d78c8ca16c0acce0e5e196503aacc17c0.tar.gz
hercules-4f59f46d78c8ca16c0acce0e5e196503aacc17c0.tar.bz2
hercules-4f59f46d78c8ca16c0acce0e5e196503aacc17c0.tar.xz
hercules-4f59f46d78c8ca16c0acce0e5e196503aacc17c0.zip
- Corrected the online_data_cleanup routine setting offline characters that are still connected to the char-server.
- Added a check in script command sc_end to properly end infinte endure - ASC_BREAKER no longer triggers status effect cards. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11817 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r--src/char/char.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c
index be2f3dafa..fe8698896 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -3909,6 +3909,8 @@ static int chardb_waiting_disconnect(int tid, unsigned int tick, int id, int dat
static int online_data_cleanup_sub(DBKey key, void *data, va_list ap)
{
struct online_char_data *character= (struct online_char_data*)data;
+ if (character->fd != -1)
+ return 0; //Character still connected
if (character->server == -2) //Unknown server.. set them offline
set_char_offline(character->char_id, character->account_id);
if (character->server < 0)