2 "$Id: init.c 10973 2008-12-14 08:51:26Z ryo_saeba $";
41 NULL,
"download_all_images",
"echo_bindings",
42 "fasttcpsend",
"command_window",
"cacheimages",
"fog_of_war",
"iconscale",
43 "mapscale",
"popups",
"displaymode",
"showicon",
"tooltips",
"sound",
"splitinfo",
44 "split",
"show_grid",
"lighting",
"trim_info_window",
45 "map_width",
"map_height",
"foodbeep",
"darkness",
"port",
46 "grad_color_bars",
"resistances",
"smoothing",
"nosplash",
47 "auto_apply_container",
"mapscroll",
"sign_popups",
"message_timestamping"
52 #define FREE_AND_CLEAR(xyz) { free(xyz); xyz=NULL; }
62 LOG(
LOG_WARNING,
"common::VersionCmd",
"Differing C->S version numbers (%d,%d)",
66 cp = strchr(data,
' ');
70 LOG(
LOG_WARNING,
"common::VersionCmd",
"Differing S->C version numbers (%d,%d)",
73 cp = strchr(cp+1,
' ');
75 LOG(
LOG_INFO,
"common::VersionCmd",
"Playing on server type %s", cp);
209 if ( !getenv(
"HOME" ) )
211 if ( getenv(
"APPDATA" ) )
214 _snprintf( env,
MAX_BUF,
"HOME=%s", getenv(
"APPDATA" ) );
215 LOG(
LOG_INFO,
"common::init.c",
"init_client_vars: HOME set to %APPDATA%.\n" );
220 LOG(
LOG_INFO,
"common::init.c",
"init_client_vars: HOME not set, setting it to .\n" );
sint16 want_config[CONFIG_NUMS]
void init_client_vars(void)
#define CONFIG_APPLY_CONTAINER
Face_Information face_info
void reset_player_data(void)
sint64 skill_exp[MAX_SKILL]
char * skill_names[MAX_SKILL]
void LOG(LogLevel level, const char *origin, const char *format,...)
void reset_client_vars(void)
int cs_print_string(int fd, const char *str,...)
sint16 use_config[CONFIG_NUMS]
#define CONFIG_GRAD_COLOR
const char *const config_names[CONFIG_NUMS]
char last_command[MAX_BUF]
int last_used_skills[MAX_SKILL+1]
void SendAddMe(ClientSocket csock)
void SendSetFaceMode(ClientSocket csock, int mode)
void VersionCmd(char *data, int len)
item * ranges[range_size]
const char *const rcsid_common_init_c
#define CONFIG_DISPLAYMODE
#define FREE_AND_CLEAR(xyz)
sint16 skill_level[MAX_SKILL]
void SendVersion(ClientSocket csock)