|
Crossfire Client, Trunk
R18666
|

Go to the source code of this file.
Defines | |
| #define | FREE_AND_CLEAR(xyz) { free(xyz); xyz=NULL; } |
Functions | |
| void | VersionCmd (char *data, int len) |
| void | SendVersion (ClientSocket csock) |
| void | SendAddMe (ClientSocket csock) |
| void | init_client_vars (void) |
| void | reset_player_data (void) |
| void | reset_client_vars (void) |
Variables | |
| const char *const | rcsid_common_init_c = "$Id: init.c 14014 2010-10-21 06:18:46Z mwedel $" |
| const char *const | config_names [CONFIG_NUMS] |
| sint16 | want_config [CONFIG_NUMS] |
| sint16 | use_config [CONFIG_NUMS] |
Handles the initialization of the client. This includes making the I_IMAGE and I_ARCH commands.
Definition in file init.c.
| #define FREE_AND_CLEAR | ( | xyz | ) | { free(xyz); xyz=NULL; } |
| void init_client_vars | ( | void | ) |
| void reset_client_vars | ( | void | ) |
This is used to clear values between connections to different servers. This needs to be called after init_client_vars has been called because it does not re-allocated some values.
Definition at line 246 of file init.c.


| void reset_player_data | ( | void | ) |
| void SendAddMe | ( | ClientSocket | csock | ) |
| void SendVersion | ( | ClientSocket | csock | ) |
| void VersionCmd | ( | char * | data, |
| int | len | ||
| ) |
| const char* const config_names[CONFIG_NUMS] |
{
NULL, "download_all_images", "echo_bindings",
"fasttcpsend", "command_window", "cacheimages", "fog_of_war", "iconscale",
"mapscale", "popups", "displaymode", "showicon", "tooltips", "sound", "splitinfo",
"split", "show_grid", "lighting", "trim_info_window",
"map_width", "map_height", "foodbeep", "darkness", "port",
"grad_color_bars", "resistances", "smoothing", "nosplash",
"auto_apply_container", "mapscroll", "sign_popups", "message_timestamping"
}
See common/init.c - number mapping used when loading/saving the values.
| const char* const rcsid_common_init_c = "$Id: init.c 14014 2010-10-21 06:18:46Z mwedel $" |
1.7.6.1