1
0
forked from noxious/client
This commit is contained in:
Dennis Postma 2024-08-27 00:43:08 +02:00
parent ecaf7f1de0
commit 41d3f73e92

View File

@ -50,7 +50,7 @@ const updatePosition = (x: number, y: number) => {
const distance = Math.sqrt(Math.pow(targetX - currentX.value, 2) + Math.pow(targetY - currentY.value, 2)) const distance = Math.sqrt(Math.pow(targetX - currentX.value, 2) + Math.pow(targetY - currentY.value, 2))
if (distance > config.tile_size.x) { if (distance > config.tile_size.x / 0.75) {
// Teleport: No animation // Teleport: No animation
currentX.value = targetX currentX.value = targetX
currentY.value = targetY currentY.value = targetY