… | |
… | |
37 | #include <autoconf.h> |
37 | #include <autoconf.h> |
38 | |
38 | |
39 | #define FONTDIR "" |
39 | #define FONTDIR "" |
40 | #define FONTNAME "" |
40 | #define FONTNAME "" |
41 | |
41 | |
42 | /* Decstations have trouble with fabs()... */ |
|
|
43 | #define FABS(x) fabs (x) |
|
|
44 | |
|
|
45 | #ifdef __NetBSD__ |
42 | #ifdef __NetBSD__ |
46 | # include <sys/param.h> |
43 | # include <sys/param.h> |
47 | #endif |
44 | #endif |
48 | |
45 | |
49 | #define MAXLEVEL 115 // for treasure calculations only |
46 | #define MAXLEVEL 115 // for treasure calculations only |
50 | |
47 | |
51 | // maximum length of an object name in the protocol |
48 | // maximum length of an object name in the protocol |
52 | #define NAME_LEN 127 |
49 | #define NAME_LEN 127 |
53 | |
|
|
54 | #undef MIN |
|
|
55 | #undef MAX |
|
|
56 | |
50 | |
57 | #define MAX_STAT 30 /* The maximum legal value of any stat */ |
51 | #define MAX_STAT 30 /* The maximum legal value of any stat */ |
58 | #define MIN_STAT 1 /* The minimum legal value of any stat */ |
52 | #define MIN_STAT 1 /* The minimum legal value of any stat */ |
59 | |
53 | |
60 | //TODO: not only use more reasonable values, also enforce them |
54 | //TODO: not only use more reasonable values, also enforce them |