Crossfire Server, Trunk  R21466
server.h File Reference
#include <signal.h>
+ Include dependency graph for server.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void login_check_shutdown (object *const op)
 
void player_map_change_common (object *op, mapstruct *const oldmap, mapstruct *const newmap)
 

Variables

volatile sig_atomic_t shutdown_flag
 

Function Documentation

◆ login_check_shutdown()

void login_check_shutdown ( object *const  op)

Warn op if a server shutdown is scheduled. Used to inform players about scheduled shutdowns when they log in.

Definition at line 1362 of file server.c.

References cmd_shutdown_time, draw_ext_info_format(), i18n(), MSG_TYPE_ADMIN, MSG_TYPE_ADMIN_DM, NDI_ALL, NDI_UNIQUE, shutdown_warn_times, and todtick.

Referenced by check_login().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ player_map_change_common()

void player_map_change_common ( object op,
mapstruct *const  oldmap,
mapstruct *const  newmap 
)

Definition at line 265 of file server.c.

References EVENT_MAPENTER, EVENT_MAPLEAVE, execute_global_event(), player_update_bg_music(), mapdef::players, set_map_timeout(), and mapdef::timeout.

Referenced by enter_map(), and move_player_attack().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ shutdown_flag

volatile sig_atomic_t shutdown_flag

Definition at line 53 of file server.c.

Referenced by check_shutdown(), and signal_shutdown().