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.119 by root, Sun Apr 4 04:10:47 2010 UTC vs.
Revision 1.120 by root, Sun Apr 4 04:58:46 2010 UTC

66#define MAX_BUF 1024 /* Used for all kinds of things */ 66#define MAX_BUF 1024 /* Used for all kinds of things */
67 67
68#define MAX_NAME 48 68#define MAX_NAME 48
69 69
70#define ATTUNE_REPELL 16 // levels diff for attune/repell 70#define ATTUNE_REPELL 16 // levels diff for attune/repell
71
72//TODO: remove all calls to fatal and replace them by cleanup
73#define OUT_OF_MEMORY 0
74#define MAP_ERROR 1
75#define ARCHTABLE_TOO_SMALL 2 // unused
76#define TOO_MANY_ERRORS 3
77 71
78/* TYPE DEFINES */ 72/* TYPE DEFINES */
79 73
80/* Only add new values to this list if somewhere in the program code, 74/* Only add new values to this list if somewhere in the program code,
81 * it is actually needed. Just because you add a new monster does not 75 * it is actually needed. Just because you add a new monster does not
591 * slow down the game */ 585 * slow down the game */
592#define MAX_DARKNESS 5 /* maximum map darkness, there is no 586#define MAX_DARKNESS 5 /* maximum map darkness, there is no
593 * practical reason to exceed this */ 587 * practical reason to exceed this */
594#define LOS_MAX 4 /* max. los value for non-blocked spaces */ 588#define LOS_MAX 4 /* max. los value for non-blocked spaces */
595#define LOS_BLOCKED 100 /* fully blocked spaces */ 589#define LOS_BLOCKED 100 /* fully blocked spaces */
596#define BRIGHTNESS(xyz) (xyz)->glow_radius>MAX_LIGHT_RADII? \ 590#define BRIGHTNESS(xyz) (xyz)->glow_radius>MAX_LIGHT_RADII ? \
597 MAX_LIGHT_RADII:(xyz)->glow_radius; 591 MAX_LIGHT_RADII : (xyz)->glow_radius;
598// player position in blocked_los code 592// player position in blocked_los code
599#define LOS_X0 (MAP_CLIENT_X / 2 - 1) 593#define LOS_X0 (MAP_CLIENT_X / 2 - 1)
600#define LOS_Y0 (MAP_CLIENT_Y / 2 - 1) 594#define LOS_Y0 (MAP_CLIENT_Y / 2 - 1)
601 595
602 596
696 690
697#define PREFER_HIGH 1 691#define PREFER_HIGH 1
698#define PREFER_LOW 0 692#define PREFER_LOW 0
699 693
700/* Flags for apply_special() */ 694/* Flags for apply_special() */
695GENCONST_IV(AP_)
701enum apply_flag 696enum apply_flag
702{ 697{
703 /* Basic flags/mode, always use one of these */ 698 /* Basic flags/mode, always use one of these */
704 AP_TOGGLE = 0, 699 AP_TOGGLE = 0,
705 AP_APPLY = 0x01, 700 AP_APPLY = 0x01,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines