diff options
author | Haru <haru@dotalux.com> | 2016-02-15 16:19:38 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-08-19 21:32:12 +0200 |
commit | 6be7aab17d958e0f5a4be0413b26c7dd81185af6 (patch) | |
tree | fd0f8cdda6f7da91cefdbb63a39c318916fb06b5 /src/char/char.h | |
parent | 68947c86d5fe3eb2686c9b3393e3db0df083bb11 (diff) | |
download | hercules-6be7aab17d958e0f5a4be0413b26c7dd81185af6.tar.gz hercules-6be7aab17d958e0f5a4be0413b26c7dd81185af6.tar.bz2 hercules-6be7aab17d958e0f5a4be0413b26c7dd81185af6.tar.xz hercules-6be7aab17d958e0f5a4be0413b26c7dd81185af6.zip |
Renamed some char and inter server variables
- `int save_log` -> `bool chr->show_save_log`
- `bool char_new` -> `bool enable_char_creation`
- `int log_char` -> `bool chr->enable_logs`
- `int log_inter` -> `bool inter->enable_logs`
- `int chr->new_display` -> `int16 chr->new_display`
- `int char_aegis_delete` -> `bool char_aegis_delete`
Split and improved from Panikon's commit 832fb27d4f767e4bc8b68c432d0da00b7cb7a4f9
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/char.h')
-rw-r--r-- | src/char/char.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/char/char.h b/src/char/char.h index a0cfb3bd7..b94226859 100644 --- a/src/char/char.h +++ b/src/char/char.h @@ -2,7 +2,7 @@ * This file is part of Hercules. * http://herc.ws - http://github.com/HerculesWS/Hercules * - * Copyright (C) 2012-2015 Hercules Dev Team + * Copyright (C) 2012-2016 Hercules Dev Team * Copyright (C) Athena Dev Teams * * Hercules is free software: you can redistribute it and/or modify @@ -110,13 +110,16 @@ struct char_interface { uint32 ip; uint16 port; int server_type; - int new_display; + int16 new_display; ///< Display 'New' in the server list. char *CHAR_CONF_NAME; char *NET_CONF_NAME; ///< Network config filename char *SQL_CONF_NAME; char *INTER_CONF_NAME; + bool show_save_log; ///< Show loading/saving messages. + bool enable_logs; ///< Whether to log char server operations. + int (*waiting_disconnect) (int tid, int64 tick, int id, intptr_t data); int (*delete_char_sql) (int char_id); struct DBData (*create_online_char_data) (union DBKey key, va_list args); @@ -282,7 +285,6 @@ extern int char_name_option; extern char char_name_letters[]; extern bool char_gm_read; extern int autosave_interval; -extern int save_log; extern char db_path[]; extern char char_db[256]; extern char scdata_db[256]; @@ -318,7 +320,6 @@ extern char char_reg_str_db[32]; extern char char_reg_num_db[32]; extern int guild_exp_rate; -extern int log_inter; void char_load_defaults(void); void char_defaults(void); |