diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-09 17:44:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-15 11:47:30 +0300 |
commit | 13b0b431785e0fce57064b395de132c664d8fe7d (patch) | |
tree | 914f459fce65adcc63753261cc621025f1650fff /src/char/char.h | |
parent | bf851b3d39371874cb7478d55f4c94a2d5107a8e (diff) | |
download | hercules-13b0b431785e0fce57064b395de132c664d8fe7d.tar.gz hercules-13b0b431785e0fce57064b395de132c664d8fe7d.tar.bz2 hercules-13b0b431785e0fce57064b395de132c664d8fe7d.tar.xz hercules-13b0b431785e0fce57064b395de132c664d8fe7d.zip |
Move global variable into interface in char.c
Other variables better move to future char_config.
Diffstat (limited to 'src/char/char.h')
-rw-r--r-- | src/char/char.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/char/char.h b/src/char/char.h index b971abbea..95533d429 100644 --- a/src/char/char.h +++ b/src/char/char.h @@ -42,7 +42,6 @@ struct online_char_data { int pincode_enable; }; -DBMap* online_char_db; // int account_id -> struct online_char_data* #define MAX_MAP_SERVERS 2 @@ -55,7 +54,6 @@ enum { TABLE_GUILD_STORAGE, }; -int login_fd; extern int char_name_option; extern char char_name_letters[]; extern bool char_gm_read; @@ -119,6 +117,10 @@ struct char_auth_node { }; struct char_interface { + int login_fd; + int char_fd; + DBMap* online_char_db; // int account_id -> struct online_char_data* + DBMap* char_db_; int (*waiting_disconnect) (int tid, int64 tick, int id, intptr_t data); int (*delete_char_sql) (int char_id); DBData (*create_online_char_data) (DBKey key, va_list args); |