aboutsummaryrefslogtreecommitdiff
path: root/auth.go
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-05-30 01:03:34 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-05-30 01:03:34 +0200
commite616789a73febe3e5a548674e767abe7e22c4c4c (patch)
treedf1e92243a181c78f87210b5bee685b7d98f655c /auth.go
parente31b9a32b591fce7964a9033912278e7dab9e2c4 (diff)
downloadhydra-dragonfire-e616789a73febe3e5a548674e767abe7e22c4c4c.tar.xz
Expose supported serialize and proto versions to Lua
Diffstat (limited to 'auth.go')
-rw-r--r--auth.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth.go b/auth.go
index cfac361..a58aba3 100644
--- a/auth.go
+++ b/auth.go
@@ -69,9 +69,9 @@ func (auth *Auth) connect() {
go func() {
for auth.client.state == csConnected && auth.state == asInit {
auth.client.conn.SendCmd(&mt.ToSrvInit{
- SerializeVer: 28,
- MinProtoVer: 39,
- MaxProtoVer: 39,
+ SerializeVer: serializeVer,
+ MinProtoVer: protoVer,
+ MaxProtoVer: protoVer,
PlayerName: auth.username,
})
time.Sleep(500 * time.Millisecond)