26 #include <sys/socket.h> 29 #ifdef HAVE_LIBDMALLOC 165 #define ROTATE_RIGHT(c) if ((c)&01) (c) = ((c)>>1)+0x80000000; else (c) >>= 1; 167 #define SET_ANIMATION(ob, newanim) { ob->face = (ob->temp_animation ? ob->temp_animation : ob->animation)->faces[newanim]; } 168 #define GET_ANIMATION(ob, anim) ((ob->temp_animation ? ob->temp_animation : ob->animation)->faces[anim]) 169 #define GET_ANIM(ob) (ob->temp_animation ? ob->temp_animation : ob->animation) 170 #define GET_ANIM_ID(ob) (ob->temp_animation ? ob->temp_animation->num : (ob->animation ? ob->animation->num : 0)) 176 #define NUM_ANIMATIONS(ob) ((ob->temp_animation ? ob->temp_animation : ob->animation)->num_animations) 177 #define NUM_FACINGS(ob) ((ob->temp_animation ? ob->temp_animation : ob->animation)->facings) 200 #define FREE_AND_CLEAR(xyz) { free(xyz); xyz = NULL; } 205 #define FREE_AND_CLEAR_STR(xyz) { free_string(xyz); xyz = NULL; } 210 #define FREE_AND_COPY(sv, nv) { if (sv) free_string(sv); sv = add_string(nv); } 215 # define NAMLEN(dirent) strlen((dirent)->d_name) 217 # define dirent direct 218 # define NAMLEN(dirent) (dirent)->d_namlen 220 # include <sys/ndir.h> 223 # include <sys/dir.h> 234 #define PERM_EXP(exptotal) (exptotal * settings.permanent_exp_ratio / 100 ) 235 #define MAX_TOTAL_EXPERIENCE (settings.permanent_exp_ratio ? (MAX_EXPERIENCE * 100 / settings.permanent_exp_ratio) : 0) 366 #define SCRIPT_FIX_ACTIVATOR 2 367 #define SCRIPT_FIX_ALL 1 368 #define SCRIPT_FIX_NOTHING 0
uint8_t create_home_portals
uint8_t stat_loss_on_death
uint8_t spell_encumbrance
uint32_t worldmaptilesizey
uint8_t starting_stat_min
linked_char * disabled_plugins
uint8_t death_penalty_level
EXTERN int num_animations
EXTERN objectlink * first_friendly_object
uint8_t spellpoint_level_depend
int allow_broken_converters
uint8_t starting_stat_max
uint8_t death_penalty_ratio
EXTERN char first_map_ext_path[MAX_BUF]
socket_struct * init_sockets
EXTERN archetype * amulet_arch
EXTERN archetype * empty_archetype
char * log_timestamp_format
int armor_speed_improvement
EXTERN const char * undead_name
int64_t pk_max_experience
struct linked_char * next
uint8_t armor_weight_linear
uint8_t balanced_stat_loss
uint8_t armor_speed_linear
EXTERN racelink * first_race
EXTERN Animations * animations
short freearr_y[SIZEOFFREE]
uint8_t ignore_plugin_compatibility
EXTERN godlink * first_god
EXTERN treasurelist * first_treasurelist
unsigned __int64 uint64_t
EXTERN artifactlist * first_artifactlist
EXTERN archetype * crown_arch
uint8_t account_block_create
EXTERN long nrofartifacts
uint8_t permanent_exp_ratio
EXTERN long nrofallowedstr
uint8_t special_break_map
uint16_t set_friendly_fire
int armor_weight_reduction
uint8_t starting_stat_points
uint8_t no_player_stealing
EXTERN int bmaps_checksum
EXTERN long trying_emergency_save
uint64_t spell_suppressions
EXTERN char first_map_path[MAX_BUF]
EXTERN player * first_player
struct linked_char linked_char
EXTERN archetype * ring_arch
EXTERN region * first_region
short freearr_x[SIZEOFFREE]
int allow_denied_spells_writing
uint32_t worldmaptilesizex
int pk_max_experience_percent
uint8_t spell_failure_effects
EXTERN mapstruct * first_map
EXTERN archetype * first_archetype
EXTERN archetype * map_archeytpe
struct Statistics Statistics
uint8_t personalized_blessings
char * account_trusted_host
EXTERN long nroftreasures