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.44 by root, Sat Jan 20 22:09:52 2007 UTC vs.
Revision 1.45 by root, Sat Jan 27 02:19:37 2007 UTC

921#define CAN_APPLY_UNAPPLY_CHOICE 0x40 921#define CAN_APPLY_UNAPPLY_CHOICE 0x40
922 922
923/* Cut off point of when an object is put on the active list or not */ 923/* Cut off point of when an object is put on the active list or not */
924#define MIN_ACTIVE_SPEED 1e-5 924#define MIN_ACTIVE_SPEED 1e-5
925 925
926/*
927 * random() is much better than rand(). If you have random(), use it instead.
928 * You shouldn't need to change any of this
929 *
930 * 0.93.3: It looks like linux has random (previously, it was set below
931 * to use rand). Perhaps old version of linux lack rand? IF you run into
932 * problems, add || defined(__linux__) the #if immediately below.
933 *
934 * 0.94.2 - you probably shouldn't need to change any of the rand stuff
935 * here.
936 */
937
938#define RANDOM() (rndm.next () & 0x7fffffffU) 926#define RANDOM() (rndm.next () & 0xffffffU)
939#define SRANDOM(xyz) //TODO, get rid of 927#define SRANDOM(xyz) rndm.seed (xyz) //TODO, get rid of
940 928
941/* Returns the weight of the given object. Note: it does not take the number of 929/* Returns the weight of the given object. Note: it does not take the number of
942 * items (nrof) into account. 930 * items (nrof) into account.
943 */ 931 */
944#define WEIGHT(op) (op->nrof?op->weight:op->weight+op->carrying) 932#define WEIGHT(op) (op->nrof?op->weight:op->weight+op->carrying)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines