--- deliantra/server/include/define.h 2006/09/29 11:53:08 1.12 +++ deliantra/server/include/define.h 2006/12/15 20:07:02 1.16 @@ -18,7 +18,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - The authors can be reached via e-mail at crossfire-devel@real-time.com + The authors can be reached via e-mail at crossfire.de */ /* This file is best viewed with a window width of about 100 character */ @@ -45,9 +45,7 @@ error - Your ANSI C compiler should be defining __STDC__; #endif -#ifndef WIN32 /* ---win32 exclude unix configuration part */ -# include -#endif +#include #define FONTDIR "" #define FONTNAME "" @@ -384,6 +382,7 @@ #define PU_NOT_CURSED 0x01000000 #define PU_JEWELS 0x02000000 +#define PU_FLESH 0x04000000 /* Instead of using arbitrary constants for indexing the @@ -1033,22 +1032,8 @@ * here. */ -#ifdef HAVE_SRANDOM -# define RANDOM() random() -# define SRANDOM(xyz) srandom(xyz) -#else -# ifdef HAVE_SRAND48 -# define RANDOM() lrand48() -# define SRANDOM(xyz) srand48(xyz) -# else -# ifdef HAVE_SRAND -# define RANDOM() rand() -# define SRANDOM(xyz) srand(xyz) -# else -# error "Could not find a usable random routine" -# endif -# endif -#endif +#define RANDOM() random() +#define SRANDOM(xyz) srandom(xyz) /* Returns the weight of the given object. Note: it does not take the number of * items (nrof) into account.