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
This commit is contained in:
Playtester 2022-05-17 18:47:31 +02:00 committed by GitHub
parent b857e2749a
commit d9ae335edf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;