61 #define UINT32_MAX 4294967295U
65 #define SINT32_MAX 2147483647
69 #define UINT16_MAX 65535
73 #define SINT16_MAX 32767
91 typedef unsigned __int64 uint64;
92 typedef signed __int64 sint64;
100 #pragma warning(disable: 4244)
101 #pragma warning(disable: 4305)
107 typedef unsigned long uint64;
108 typedef signed long sint64;
112 #elif SIZEOF_LONG_LONG == 8
113 typedef unsigned long long uint64;
114 typedef signed long long sint64;
119 #error do not know how to get a 64 bit value on this system.
120 #error correct and send mail to crossfire-devel on how to do this
201 #define NROF_COMPRESS_METHODS 4
245 #define ROTATE_RIGHT(c) if ((c)&01) (c) = ((c)>>1)+0x80000000; else (c) >>= 1;
247 #define SET_ANIMATION(ob, newanim) { if (ob->temp_animation_id) { ob->face = &new_faces[animations[ob->temp_animation_id].faces[newanim]]; } else { ob->face = &new_faces[animations[ob->animation_id].faces[newanim]]; } }
248 #define GET_ANIMATION(ob, anim) (ob->temp_animation_id ? animations[ob->temp_animation_id].faces[anim] : animations[ob->animation_id].faces[anim])
249 #define GET_ANIM_ID(ob) (ob->temp_animation_id ? ob->temp_animation_id : ob->animation_id)
255 #define NUM_ANIMATIONS(ob) (ob->temp_animation_id ? animations[ob->temp_animation_id].num_animations : animations[ob->animation_id].num_animations)
256 #define NUM_FACINGS(ob) (ob->temp_animation_id ? animations[ob->temp_animation_id].facings : animations[ob->animation_id].facings)
276 #define decrease_ob(xyz) decrease_ob_nr(xyz, 1)
282 #define FREE_AND_CLEAR(xyz) { free((void *)xyz); xyz = NULL; }
283 #define FREE_AND_CLEAR_STR(xyz) { free_string(xyz); xyz = NULL; }
288 #define FREE_AND_COPY(sv, nv) { if (sv) free_string(sv); sv = add_string(nv); }
295 # define CALLOC(x, y) calloc(x, y)
296 # define CFREE(x) free(x)
298 # define CALLOC(x, y) malloc(x*y)
299 # define CFREE(x) free(x)
305 # define NAMLEN(dirent) strlen((dirent)->d_name)
307 # define dirent direct
308 # define NAMLEN(dirent) (dirnet)->d_namlen
310 # include <sys/ndir.h>
313 # include <sys/dir.h>
439 #ifdef GETTIMEOFDAY_TWO_ARGS
440 #define GETTIMEOFDAY(last_time) gettimeofday(last_time, (struct timezone *)NULL);
442 #define GETTIMEOFDAY(last_time) gettimeofday(last_time);
449 #define SCRIPT_FIX_ACTIVATOR 2
450 #define SCRIPT_FIX_ALL 1
451 #define SCRIPT_FIX_NOTHING 0
uint8 death_penalty_ratio
uint64 spell_suppressions
EXTERN int num_animations
char who_wiz_format[MAX_BUF]
EXTERN objectlink * first_friendly_object
int allow_broken_converters
uint8 spellpoint_level_depend
EXTERN char first_map_ext_path[MAX_BUF]
char meta_server[MAX_BUF]
char meta_comment[MAX_BUF]
socket_struct * init_sockets
EXTERN archetype * amulet_arch
EXTERN archetype * empty_archetype
char * log_timestamp_format
int armor_speed_improvement
uint8 spell_failure_effects
uint8 create_home_portals
EXTERN const char * undead_name
struct linked_char * next
EXTERN racelink * first_race
EXTERN Animations * animations
short freearr_y[SIZEOFFREE]
#define NROF_COMPRESS_METHODS
EXTERN godlink * first_god
EXTERN treasurelist * first_treasurelist
EXTERN artifactlist * first_artifactlist
EXTERN archetype * crown_arch
EXTERN long nrofartifacts
const char * uncomp[NROF_COMPRESS_METHODS][3]
EXTERN long nrofallowedstr
int armor_weight_reduction
uint8 armor_weight_linear
uint8 death_penalty_level
EXTERN archetype * staff_arch
EXTERN int bmaps_checksum
EXTERN long trying_emergency_save
EXTERN int animations_allocated
EXTERN char first_map_path[MAX_BUF]
EXTERN player * first_player
struct linked_char linked_char
uint8 personalized_blessings
uint8 permanent_exp_ratio
EXTERN long warn_archetypes
EXTERN archetype * ring_arch
EXTERN region * first_region
short freearr_x[SIZEOFFREE]
int allow_denied_spells_writing
int pk_max_experience_percent
EXTERN mapstruct * first_map
EXTERN archetype * first_archetype
EXTERN archetype * map_archeytpe
struct Statistics Statistics
EXTERN long nroftreasures