ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/define.h
(Generate patch)

Comparing deliantra/server/include/define.h (file contents):
Revision 1.12 by root, Fri Sep 29 11:53:08 2006 UTC vs.
Revision 1.15 by root, Thu Dec 14 22:45:40 2006 UTC

43 * The following should still hopefully result in an error. 43 * The following should still hopefully result in an error.
44 */ 44 */
45error - Your ANSI C compiler should be defining __STDC__; 45error - Your ANSI C compiler should be defining __STDC__;
46#endif 46#endif
47 47
48#ifndef WIN32 /* ---win32 exclude unix configuration part */
49# include <autoconf.h> 48#include <autoconf.h>
50#endif
51 49
52#define FONTDIR "" 50#define FONTDIR ""
53#define FONTNAME "" 51#define FONTNAME ""
54 52
55/* Decstations have trouble with fabs()... */ 53/* Decstations have trouble with fabs()... */
382#define PU_READABLES 0x00400000 380#define PU_READABLES 0x00400000
383#define PU_MAGIC_DEVICE 0x00800000 381#define PU_MAGIC_DEVICE 0x00800000
384 382
385#define PU_NOT_CURSED 0x01000000 383#define PU_NOT_CURSED 0x01000000
386#define PU_JEWELS 0x02000000 384#define PU_JEWELS 0x02000000
385#define PU_FLESH 0x04000000
387 386
388 387
389/* Instead of using arbitrary constants for indexing the 388/* Instead of using arbitrary constants for indexing the
390 * freearr, add these values. <= SIZEOFFREE1 will get you 389 * freearr, add these values. <= SIZEOFFREE1 will get you
391 * within 1 space. <= SIZEOFFREE2 wll get you withing 390 * within 1 space. <= SIZEOFFREE2 wll get you withing
1031 * 1030 *
1032 * 0.94.2 - you probably shouldn't need to change any of the rand stuff 1031 * 0.94.2 - you probably shouldn't need to change any of the rand stuff
1033 * here. 1032 * here.
1034 */ 1033 */
1035 1034
1036#ifdef HAVE_SRANDOM
1037# define RANDOM() random() 1035#define RANDOM() random()
1038# define SRANDOM(xyz) srandom(xyz) 1036#define SRANDOM(xyz) srandom(xyz)
1039#else
1040# ifdef HAVE_SRAND48
1041# define RANDOM() lrand48()
1042# define SRANDOM(xyz) srand48(xyz)
1043# else
1044# ifdef HAVE_SRAND
1045# define RANDOM() rand()
1046# define SRANDOM(xyz) srand(xyz)
1047# else
1048# error "Could not find a usable random routine"
1049# endif
1050# endif
1051#endif
1052 1037
1053/* Returns the weight of the given object. Note: it does not take the number of 1038/* Returns the weight of the given object. Note: it does not take the number of
1054 * items (nrof) into account. 1039 * items (nrof) into account.
1055 */ 1040 */
1056#define WEIGHT(op) (op->nrof?op->weight:op->weight+op->carrying) 1041#define WEIGHT(op) (op->nrof?op->weight:op->weight+op->carrying)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines