mirror of
https://github.com/renorris/openfsd
synced 2026-04-17 07:45:31 +08:00
switch geohash technique to 15-bit precision integer
This commit is contained in:
@@ -27,7 +27,7 @@ type FSDClient struct {
|
||||
NetworkRating int
|
||||
SimulatorType int
|
||||
RealName string
|
||||
CurrentGeohash string
|
||||
CurrentGeohash uint64
|
||||
SendFastEnabled bool
|
||||
|
||||
Kill chan string // Signal to disconnect this client
|
||||
@@ -367,7 +367,7 @@ func HandleConnection(conn *net.TCPConn) {
|
||||
NetworkRating: int(claimedRating),
|
||||
SimulatorType: addPilotPDU.SimulatorType,
|
||||
RealName: addPilotPDU.RealName,
|
||||
CurrentGeohash: "",
|
||||
CurrentGeohash: 0,
|
||||
SendFastEnabled: false,
|
||||
Kill: make(chan string, 1),
|
||||
Mailbox: make(chan string, 16),
|
||||
|
||||
Reference in New Issue
Block a user