diff options
author | Edzell <derz@elidragon.com> | 2022-05-14 18:30:55 +0200 |
---|---|---|
committer | Edzell <derz@elidragon.com> | 2022-05-14 18:30:55 +0200 |
commit | b0229590053e8dde1dd5f39458749258084f9cb3 (patch) | |
tree | 2b466137a0535302e1cfaaf00f0596da2c6fadc4 /content.go | |
parent | c3fe13d0963b73a813e3bbe508de9a274c704fc0 (diff) |
fix variable naming and client compatability issues
Diffstat (limited to 'content.go')
-rw-r--r-- | content.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -118,9 +118,9 @@ func handleContent(cc *contentConn) { for cc.state() == csCreated { cc.SendCmd(&mt.ToSrvInit{ - SerializeVer: latestSerializeVer, - MinProtoVer: latestProtoVer, - MaxProtoVer: latestProtoVer, + SerializeVer: serializeVer, + MinProtoVer: protoVer, + MaxProtoVer: protoVer, PlayerName: cc.userName, }) time.Sleep(500 * time.Millisecond) @@ -158,7 +158,7 @@ func handleContent(cc *contentConn) { cc.auth.method = mt.SRP } - if cmd.SerializeVer != latestSerializeVer { + if cmd.SerializeVer != serializeVer { cc.log("<-", "invalid serializeVer") break } |