diff options
author | Kevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-13 05:14:01 +0000 |
---|---|---|
committer | Kevin <Kevin@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-04-13 05:14:01 +0000 |
commit | f85e3c2c3bbf2dcae904e95517448ee9a232c420 (patch) | |
tree | 72af9521b1d135b0efbd1629c3d6c0780b89ae71 /src/char_sql | |
parent | 5156c90c4d5fccf52fe42f72d143623bcd025c33 (diff) | |
download | hercules-f85e3c2c3bbf2dcae904e95517448ee9a232c420.tar.gz hercules-f85e3c2c3bbf2dcae904e95517448ee9a232c420.tar.bz2 hercules-f85e3c2c3bbf2dcae904e95517448ee9a232c420.tar.xz hercules-f85e3c2c3bbf2dcae904e95517448ee9a232c420.zip |
Login will no longer set character offline when going from map to character select.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12575 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r-- | src/char_sql/char.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index b4f2671b5..ca1b74ce7 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -59,6 +59,7 @@ char hotkey_db[256] = "hotkey"; char quest_db[256] = "quest"; char quest_obj_db[256] = "quest_objective"; +//If your code editor is having problems syntax highlighting this file, uncomment this and RECOMMENT IT BEFORE COMPILING //#undef TXT_SQL_CONVERT #ifndef TXT_SQL_CONVERT static DBMap* char_db_; // int char_id -> struct mmo_charstatus* @@ -296,7 +297,7 @@ void set_char_offline(int char_id, int account_id) } } - if (login_fd > 0 && !session[login_fd]->flag.eof) + if (login_fd > 0 && !session[login_fd]->flag.eof && (character->fd != -1 && character->char_id != -1)) { WFIFOHEAD(login_fd,6); WFIFOW(login_fd,0) = 0x272c; |