--- deliantra/server/include/define.h 2007/07/01 05:00:18 1.62 +++ deliantra/server/include/define.h 2007/07/10 05:51:38 1.64 @@ -78,7 +78,7 @@ #define MAX_BUF 1024 /* Used for all kinds of things */ #define VERY_BIG_BUF 2048 -#define HUGE_BUF 4096 /* Used for messages - some can be quite long */ +#define HUGE_BUF 10240 /* Used for messages - some can be quite long */ #define SOCKET_BUFLEN 4096 /* Max length a packet could be */ #define FONTSIZE 3000 /* Max chars in font */ @@ -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