mirror of
https://github.com/Tribufu/rust-gamedig
synced 2026-08-09 23:21:06 +00:00
[Protocol] Fixed quake 2 bug that version wouldn't always be present
This commit is contained in:
parent
a81a6ef968
commit
ada60f2376
3 changed files with 6 additions and 5 deletions
|
|
@ -119,8 +119,7 @@ pub(crate) fn client_query<Client: QuakeClient>(
|
|||
players,
|
||||
version: server_vars
|
||||
.remove("version")
|
||||
.or(server_vars.remove("*version"))
|
||||
.ok_or(GDError::PacketBad)?,
|
||||
.or(server_vars.remove("*version")),
|
||||
unused_entries: server_vars,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue