26 #include <sys/socket.h> 29 #ifdef HAVE_LIBDMALLOC 158 #define ROTATE_RIGHT(c) if ((c)&01) (c) = ((c)>>1)+0x80000000; else (c) >>= 1; 160 #define SET_ANIMATION(ob, newanim) { ob->face = (ob->temp_animation ? ob->temp_animation : ob->animation)->faces[newanim]; } 161 #define GET_ANIMATION(ob, anim) ((ob->temp_animation ? ob->temp_animation : ob->animation)->faces[anim]) 162 #define GET_ANIM(ob) (ob->temp_animation ? ob->temp_animation : ob->animation) 163 #define GET_ANIM_ID(ob) (ob->temp_animation ? ob->temp_animation->num : (ob->animation ? ob->animation->num : 0)) 169 #define NUM_ANIMATIONS(ob) ((ob->temp_animation ? ob->temp_animation : ob->animation)->num_animations) 170 #define NUM_FACINGS(ob) ((ob->temp_animation ? ob->temp_animation : ob->animation)->facings) 193 #define FREE_AND_CLEAR(xyz) { free(xyz); xyz = NULL; } 198 #define FREE_AND_CLEAR_STR(xyz) { free_string(xyz); xyz = NULL; } 200 #define FREE_AND_CLEAR_STR_IF(xyz) { if (xyz) { free_string(xyz); xyz = NULL; } } 204 #define FREE_AND_COPY(sv, nv) { if (sv) free_string(sv); sv = add_string(nv); } 206 #define FREE_AND_COPY_IF(sv, nv) { if (sv) free_string(sv); sv = nv ? add_string(nv) : NULL; } 211 # define NAMLEN(dirent) strlen((dirent)->d_name) 213 # define dirent direct 214 # define NAMLEN(dirent) (dirent)->d_namlen 216 # include <sys/ndir.h> 219 # include <sys/dir.h> 230 #define PERM_EXP(exptotal) (exptotal * settings.permanent_exp_ratio / 100 ) 231 #define MAX_TOTAL_EXPERIENCE (settings.permanent_exp_ratio ? (MAX_EXPERIENCE * 100 / settings.permanent_exp_ratio) : 0) 333 const char *hooks_filename[20];
369 #define SCRIPT_FIX_ACTIVATOR 2 370 #define SCRIPT_FIX_ALL 1 371 #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 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
void * archetypes_tracker
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
void(* collectorHook)(BufferReader *, const char *)
short freearr_y[SIZEOFFREE]
uint8_t ignore_plugin_compatibility
EXTERN godlink * first_god
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 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 * map_archeytpe
struct Statistics Statistics
uint8_t personalized_blessings
char * account_trusted_host