summaryrefslogtreecommitdiff
path: root/src/char_sql/char.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-18 09:13:01 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-18 09:13:01 +0000
commit8855528bcaa2c06cc7f23d53d63cbfdadd2f8fcf (patch)
tree7dc380f0d787f5c8188a4778188127dc7d0cd762 /src/char_sql/char.c
parent3a4984a967675b1fd10c84730994bf08766c639d (diff)
downloadhercules-8855528bcaa2c06cc7f23d53d63cbfdadd2f8fcf.tar.gz
hercules-8855528bcaa2c06cc7f23d53d63cbfdadd2f8fcf.tar.bz2
hercules-8855528bcaa2c06cc7f23d53d63cbfdadd2f8fcf.tar.xz
hercules-8855528bcaa2c06cc7f23d53d63cbfdadd2f8fcf.zip
minor code tweaking
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11936 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql/char.c')
-rw-r--r--src/char_sql/char.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c
index a40d627b8..cf6ea56e7 100644
--- a/src/char_sql/char.c
+++ b/src/char_sql/char.c
@@ -339,8 +339,10 @@ static int char_db_kickoffline(DBKey key, void* data, va_list ap)
mapif_disconnectplayer(server[character->server].fd, character->account_id, character->char_id, 1);
else if (character->waiting_disconnect == -1)
set_char_offline(character->char_id, character->account_id);
- else return 0;
- return 1; // WTF, pick one!
+ else
+ return 0; // fail
+
+ return 1;
}
void set_all_offline(int id)