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.105 by root, Thu Oct 15 21:59:48 2009 UTC vs.
Revision 1.108 by root, Mon Nov 9 19:17:58 2009 UTC

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
46#define MAXLEVEL 115 // for treasure calculations only
47
49// maximum length of an object name in the protocol 48// maximum length of an object name in the protocol
50#define NAME_LEN 127 49#define NAME_LEN 127
51
52#undef MIN
53#undef MAX
54 50
55#define MAX_STAT 30 /* The maximum legal value of any stat */ 51#define MAX_STAT 30 /* The maximum legal value of any stat */
56#define MIN_STAT 1 /* The minimum legal value of any stat */ 52#define MIN_STAT 1 /* The minimum legal value of any stat */
57 53
58//TODO: not only use more reasonable values, also enforce them 54//TODO: not only use more reasonable values, also enforce them
397 393
398/* the flags */ 394/* the flags */
399 395
400#define FLAG_ALIVE 0 /* Object can fight (or be fought) */ 396#define FLAG_ALIVE 0 /* Object can fight (or be fought) */
401#define FLAG_WIZ 1 /* Object has special privilegies */ 397#define FLAG_WIZ 1 /* Object has special privilegies */
402#define FLAG_REMOVED 2 /* Object is not in any map or invenory */ 398#define FLAG_REMOVED 2 /* Object is not in any map or inventory */
403#define FLAG_FREED 3 /* Object is in the list of free objects */ 399#define FLAG_FREED 3 /* Object is in the list of free objects */
404#define FLAG_WIZLOOK 4 /* disable los and lighting */ 400#define FLAG_WIZLOOK 4 /* disable los and lighting */
405#define FLAG_APPLIED 5 /* Object is ready for use by living */ 401#define FLAG_APPLIED 5 /* Object is ready for use by living */
406#define FLAG_UNPAID 6 /* Object hasn't been paid for yet */ 402#define FLAG_UNPAID 6 /* Object hasn't been paid for yet */
407#define FLAG_USE_SHIELD 7 /* Can this creature use a shield? */ 403#define FLAG_USE_SHIELD 7 /* Can this creature use a shield? */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines