--- deliantra/server/include/define.h 2007/07/01 05:00:18 1.62 +++ deliantra/server/include/define.h 2007/07/05 08:10:30 1.63 @@ -916,8 +916,10 @@ #define CAN_APPLY_UNAPPLY_MULT 0x20 #define CAN_APPLY_UNAPPLY_CHOICE 0x40 -/* Cut off point of when an object is put on the active list or not */ -#define MIN_ACTIVE_SPEED 1e-5 +// Cut off point of when an object is put on the active list or not +// we use 2**-n because that can be represented exactly +// also make sure that this is a float, not double, constant +#define MIN_ACTIVE_SPEED (1.f / 65536.f) #define RANDOM() (rndm.next () & 0xffffffU) #define SRANDOM(xyz) rndm.seed (xyz) //TODO, get rid of