From 83236940fadd428710a85c431f22e00147296783 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Fri, 29 Jul 2022 17:43:24 +0200 Subject: [PATCH] Update max worldsize coords MAX_COORD has been increased significantly in this engine. Not sure yet if the rest stayed the same. --- r5dev/public/include/worldsize.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/r5dev/public/include/worldsize.h b/r5dev/public/include/worldsize.h index 141dc173..61b9d9cf 100644 --- a/r5dev/public/include/worldsize.h +++ b/r5dev/public/include/worldsize.h @@ -14,14 +14,14 @@ // These definitions must match the coordinate message sizes in coordsize.h -// Following values should be +16384, -16384, +15/16, -15/16 +// Following values should be +65536, -65536, +15/16, -15/16 // NOTE THAT IF THIS GOES ANY BIGGER THEN DISK NODES/LEAVES CANNOT USE SHORTS TO STORE THE BOUNDS -#define MAX_COORD_INTEGER (16384) +#define MAX_COORD_INTEGER (65536) #define MIN_COORD_INTEGER (-MAX_COORD_INTEGER) #define MAX_COORD_FRACTION (1.0-(1.0/16.0)) #define MIN_COORD_FRACTION (-1.0+(1.0/16.0)) -#define MAX_COORD_FLOAT (16384.0f) +#define MAX_COORD_FLOAT (65536.0f) #define MIN_COORD_FLOAT (-MAX_COORD_FLOAT) // Width of the coord system, which is TOO BIG to send as a client/server coordinate value