From d9ae335edf1cbd8812fad10c9bbdd5dede2d330d Mon Sep 17 00:00:00 2001 From: Playtester Date: Tue, 17 May 2022 18:47:31 +0200 Subject: [PATCH] Official client range distance offset (#6950) - Fixed the client range distance offset which is really 1.1 and not 1.0625 - This fixes the issue that when you sometimes tried to use a skill, nothing happened -> the client didn't make you move closer but the server said you are not in range yet - I originally got an incorrect value through testing, because I didn't know that the client calculates range in a 3D room rather than in a 2D room, now I retested on a completely flat map; fully confirmed and official now - See also #6949 --- src/map/path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/path.cpp b/src/map/path.cpp index 09fd5e6f69..4b2596ebd5 100644 --- a/src/map/path.cpp +++ b/src/map/path.cpp @@ -504,7 +504,7 @@ int distance_client(int dx, int dy) //Bonus factor used by client //This affects even horizontal/vertical lines so they are one cell longer than expected - temp_dist -= 0.0625; + temp_dist -= 0.1; if(temp_dist < 0) temp_dist = 0;