test
This commit is contained in:
parent
8d5aec4114
commit
bd7534398f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user