--- deliantra/server/include/global.h 2008/04/15 03:16:02 1.69 +++ deliantra/server/include/global.h 2009/04/27 01:38:48 1.75 @@ -1,7 +1,7 @@ /* * This file is part of Deliantra, the Roguelike Realtime MMORPG. * - * Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Deliantra team + * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team * Copyright (©) 1992,2007 Frank Tore Johansen * @@ -120,8 +120,6 @@ /* Now for recipe/alchemy */ #include "recipe.h" -#include "funcpoint.h" - /***************************************************************************** * GLOBAL VARIABLES: * *****************************************************************************/ @@ -146,17 +144,13 @@ /* * Misc global variables: */ -EXTERN archetype *empty_archetype; /* Nice to have fast access to it */ -EXTERN archetype *map_archeytpe; EXTERN shstr first_map_path; /* The start-level */ EXTERN shstr first_map_ext_path; /* Path used for per-race start maps */ EXTERN char errmsg[HUGE_BUF]; EXTERN long ob_count; -/* - * Used in treasure.c - */ -EXTERN archetype *ring_arch, *amulet_arch, *staff_arch, *crown_arch; + +extern dynbuf_text msg_dynbuf; // a dynbuf for text messages and other temporary data #define SET_ANIMATION(ob,newanim) ob->face = animations [ob->animation_id].faces [newanim] #define GET_ANIMATION(ob,anim) animations [ob->animation_id].faces [anim] @@ -169,13 +163,14 @@ #define NUM_ANIMATIONS(ob) (animations[ob->animation_id].num_animations) #define NUM_FACINGS(ob) (animations[ob->animation_id].facings) +// used only by treasure.C, does not handle null arch ptrs +#define IS_ARCH(arch,name) ((arch)->archname == shstr_ ## name) + extern void emergency_save (); #include "libproto.h" #include "sockproto.h" -#define decrease_ob(xyz) decrease_ob_nr(xyz,1) - INTERFACE_CLASS (Settings) struct Settings { const char *ACC (RO, logfilename); /* logfile to use */ @@ -243,5 +238,9 @@ void reset_signals (); +#ifdef DEVEL +# include "devel.h" +#endif + #endif /* GLOBAL_H */