From bc7a37e4907ba7c748089c63f8ed301fc03192ce Mon Sep 17 00:00:00 2001 From: Reese Norris Date: Sun, 25 May 2025 14:19:08 -0700 Subject: [PATCH] properly store sendfast state --- fsd/handler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fsd/handler.go b/fsd/handler.go index 80407a8..cc221ca 100644 --- a/fsd/handler.go +++ b/fsd/handler.go @@ -167,10 +167,12 @@ func (s *Server) handlePilotPosition(client *Client, packet []byte) { // Check if we need to update the sendfast state if client.sendFastEnabled { if (client.closestVelocityClientDistance / 1852.0) > 5.0 { // 5.0 nautical miles + client.sendFastEnabled = false sendDisableSendFastPacket(client) } } else { if (client.closestVelocityClientDistance / 1852.0) < 5.0 { // 5.0 nautical miles + client.sendFastEnabled = true sendEnableSendFastPacket(client) } }