aboutsummaryrefslogtreecommitdiff
path: root/content.go
diff options
context:
space:
mode:
authorEdzell <derz@elidragon.com>2022-05-14 18:30:55 +0200
committerEdzell <derz@elidragon.com>2022-05-14 18:30:55 +0200
commitb0229590053e8dde1dd5f39458749258084f9cb3 (patch)
tree2b466137a0535302e1cfaaf00f0596da2c6fadc4 /content.go
parentc3fe13d0963b73a813e3bbe508de9a274c704fc0 (diff)
fix variable naming and client compatability issues
Diffstat (limited to 'content.go')
-rw-r--r--content.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/content.go b/content.go
index 33998d5..c8e3fe6 100644
--- a/content.go
+++ b/content.go
@@ -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
}