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.126 by root, Thu Apr 8 22:40:35 2010 UTC vs.
Revision 1.128 by root, Sun Apr 11 00:34:05 2010 UTC

370/* 370/*
371 * If any FLAG's are added or changed, make sure the flag_names structure in 371 * If any FLAG's are added or changed, make sure the flag_names structure in
372 * common/loader.C is updated. 372 * common/loader.C is updated.
373 */ 373 */
374 374
375/* Basic routines to do above */
376#define SET_FLAG(obj, flg) (obj)->flag [flg] = 1
377#define CLEAR_FLAG(obj, flg) (obj)->flag [flg] = 0
378#define QUERY_FLAG(obj, flg) (obj)->flag [flg]
379
380/* the flags */ 375/* the flags */
381 376
382#define FLAG_ALIVE 0 /* Object can fight (or be fought) */ 377#define FLAG_ALIVE 0 /* Object can fight (or be fought) */
383#define FLAG_WIZ 1 /* Object has special privilegies */ 378#define FLAG_WIZ 1 /* Object has special privilegies */
384#define FLAG_REMOVED 2 /* Object is not in any map or inventory */ 379#define FLAG_REMOVED 2 /* Object is not in any map or inventory */
731#define CAN_APPLY_UNAPPLY_MULT 0x20 726#define CAN_APPLY_UNAPPLY_MULT 0x20
732#define CAN_APPLY_UNAPPLY_CHOICE 0x40 727#define CAN_APPLY_UNAPPLY_CHOICE 0x40
733 728
734// Cut off point of when an object is put on the active list or not 729// Cut off point of when an object is put on the active list or not
735// we use 2**-n because that can be represented exactly 730// we use 2**-n because that can be represented exactly
736// also make sure that this is a float, not double, constant 731// also make sure that this is a float, not double, constant.
732// some areas in the server divide by this value, so
733// to avoid integer overflows it should not be much lower.
737#define MIN_ACTIVE_SPEED (1.f / 65536.f) 734#define MIN_ACTIVE_SPEED (1.f / 65536.f)
738 735
739/* have mercy on players and guarantee a somewhat higher speed */ 736/* have mercy on players and guarantee a somewhat higher speed */
740#define MIN_PLAYER_SPEED 0.04f 737#define MIN_PLAYER_SPEED 0.04f
741 738

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines