diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-08 10:50:08 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-08 10:50:08 +0000 |
commit | ad2a3a12e2d603e8ef2011d1121271b7ed2f05eb (patch) | |
tree | ef7f6a0b4ad5614870f8820e1e335b80eb9c77da /src/char_sql | |
parent | 49e40b5b5281ebbe4177a3a0c48dc2e0769c1dc4 (diff) | |
download | hercules-ad2a3a12e2d603e8ef2011d1121271b7ed2f05eb.tar.gz hercules-ad2a3a12e2d603e8ef2011d1121271b7ed2f05eb.tar.bz2 hercules-ad2a3a12e2d603e8ef2011d1121271b7ed2f05eb.tar.xz hercules-ad2a3a12e2d603e8ef2011d1121271b7ed2f05eb.zip |
Synced the charservers' init procedure.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11697 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char_sql')
-rw-r--r-- | src/char_sql/char.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/char_sql/char.c b/src/char_sql/char.c index 94e1af1c8..5c6040cf2 100644 --- a/src/char_sql/char.c +++ b/src/char_sql/char.c @@ -3773,6 +3773,9 @@ int do_init(int argc, char **argv) ShowInfo("Initializing char server.\n"); online_char_db = db_alloc(__FILE__,__LINE__,DB_INT,DB_OPT_RELEASE_DATA,sizeof(int)); mmo_char_sql_init(); + char_read_fame_list(); //Read fame lists. + if(char_gm_read) + read_gm_account(); ShowInfo("char server initialized.\n"); set_defaultparse(parse_char); @@ -3800,20 +3803,12 @@ int do_init(int argc, char **argv) add_timer_func_list(send_users_tologin, "send_users_tologin"); add_timer_func_list(send_accounts_tologin, "send_accounts_tologin"); add_timer_func_list(chardb_waiting_disconnect, "chardb_waiting_disconnect"); - add_timer_func_list(online_data_cleanup, "online_data_cleanup"); - add_timer_interval(gettick() + 600*1000, online_data_cleanup, 0, 0, 600 * 1000); - - // send ALIVE PING to login server. - add_timer_interval(gettick() + 10, check_connect_login_server, 0, 0, 10 * 1000); - // send USER COUNT PING to login server. - add_timer_interval(gettick() + 10, send_users_tologin, 0, 0, 5 * 1000); - add_timer_interval(gettick() + 3600*1000, send_accounts_tologin, 0, 0, 3600 * 1000); //Sync online accounts every hour. - char_read_fame_list(); //Read fame lists. - - if(char_gm_read) - read_gm_account(); + add_timer_interval(gettick() + 1000, check_connect_login_server, 0, 0, 10*1000); + add_timer_interval(gettick() + 1000, send_users_tologin, 0, 0, 5*1000); + add_timer_interval(gettick() + 3600*1000, send_accounts_tologin, 0, 0, 3600*1000); //Sync online accounts every hour. + add_timer_interval(gettick() + 600*1000, online_data_cleanup, 0, 0, 600*1000); if( console ) { |