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.79 by root, Sun Apr 13 20:21:50 2008 UTC vs.
Revision 1.80 by root, Tue Apr 22 07:01:46 2008 UTC

759// also make sure that this is a float, not double, constant 759// also make sure that this is a float, not double, constant
760#define MIN_ACTIVE_SPEED (1.f / 65536.f) 760#define MIN_ACTIVE_SPEED (1.f / 65536.f)
761 761
762#define RANDOM() (rndm.next () & 0xffffffU) 762#define RANDOM() (rndm.next () & 0xffffffU)
763 763
764/* Returns the weight of the given object. Note: it does not take the number of
765 * items (nrof) into account.
766 * (this looks rather bogus, schmorp)
767 */
768#define WEIGHT(op) ((op)->nrof ? (op)->weight : (op)->weight + (op)->carrying)
769
770/* 764/*
771 * Warning! 765 * Warning!
772 * If you add message types here, don't forget 766 * If you add message types here, don't forget
773 * to keep the client up to date too! 767 * to keep the client up to date too!
774 */ 768 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines