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.94 by root, Tue Dec 23 06:58:23 2008 UTC vs.
Revision 1.95 by root, Sat Dec 27 02:31:19 2008 UTC

393 393
394#define NROF_SOUNDS (23 + NROFREALSPELLS) /* Number of sounds */ 394#define NROF_SOUNDS (23 + NROFREALSPELLS) /* Number of sounds */
395 395
396/* 396/*
397 * If any FLAG's are added or changed, make sure the flag_names structure in 397 * If any FLAG's are added or changed, make sure the flag_names structure in
398 * common/loader.l is updated. 398 * common/loader.C is updated.
399 */ 399 */
400 400
401/* Basic routines to do above */ 401/* Basic routines to do above */
402#define SET_FLAG(obj, flg) (obj)->flag [flg] = 1 402#define SET_FLAG(obj, flg) (obj)->flag [flg] = 1
403#define CLEAR_FLAG(obj, flg) (obj)->flag [flg] = 0 403#define CLEAR_FLAG(obj, flg) (obj)->flag [flg] = 0
563#define MOVE_FLY_HIGH 0x04 /* High flying object */ 563#define MOVE_FLY_HIGH 0x04 /* High flying object */
564#define MOVE_FLYING 0x06 564#define MOVE_FLYING 0x06
565 /* Combo of fly_low and fly_high */ 565 /* Combo of fly_low and fly_high */
566#define MOVE_SWIM 0x08 /* Swimming object */ 566#define MOVE_SWIM 0x08 /* Swimming object */
567#define MOVE_BOAT 0x10 /* Boats/sailing */ 567#define MOVE_BOAT 0x10 /* Boats/sailing */
568#define MOVE_SHIP 0x20 /* boats suitable fro oceans */ 568#define MOVE_SHIP 0x20 /* boats suitable for oceans */
569 569
570#define MOVE_ALL 0x3f /* Mask of all movement types */ 570#define MOVE_ALL 0x3f /* Mask of all movement types */
571 571
572/* typdef here to define type large enough to hold bitmask of 572/* typdef here to define type large enough to hold bitmask of
573 * all movement types. Make one declaration so easy to update. 573 * all movement types. Make one declaration so easy to update.
762// Cut off point of when an object is put on the active list or not 762// Cut off point of when an object is put on the active list or not
763// we use 2**-n because that can be represented exactly 763// we use 2**-n because that can be represented exactly
764// also make sure that this is a float, not double, constant 764// also make sure that this is a float, not double, constant
765#define MIN_ACTIVE_SPEED (1.f / 65536.f) 765#define MIN_ACTIVE_SPEED (1.f / 65536.f)
766 766
767#define RANDOM() (rndm.next () & 0xffffffU)
768
769/* 767/*
770 * Warning! 768 * Warning!
771 * If you add message types here, don't forget 769 * If you add message types here, don't forget
772 * to keep the client up to date too! 770 * to keep the client up to date too!
773 */ 771 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines