This commit is contained in:
shoopea 2020-06-14 23:41:47 +02:00
parent 8d5aec4114
commit bd7534398f

View File

@ -99,7 +99,11 @@ func (p *PacketAdminServerWelcome) Read(b []byte) {
p.ServerName, _ = r.ReadString(0) p.ServerName, _ = r.ReadString(0)
p.OpenTTDVersion, _ = r.ReadString(0) p.OpenTTDVersion, _ = r.ReadString(0)
c, _ := r.ReadByte() c, _ := r.ReadByte()
p.Dedicated = bool(c) if c > 0 {
p.Dedicated = true
} else {
p.Dedicated = false
}
p.MapName, _ = r.ReadString(0) p.MapName, _ = r.ReadString(0)
bs := make([]byte, 13) bs := make([]byte, 13)
_, _ = r.Read(bs) _, _ = r.Read(bs)