… | |
… | |
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 | */ |