diff --git a/src/protocols/quake/one.rs b/src/protocols/quake/one.rs index 200f3d6..85b4389 100644 --- a/src/protocols/quake/one.rs +++ b/src/protocols/quake/one.rs @@ -31,7 +31,7 @@ impl QuakeClient for QuakeOne { } fn get_response_header<'a>() -> &'a [u8] { - &[0x6E] + "n".as_bytes() } fn parse_player_string(mut data: Iter<&str>) -> GDResult { diff --git a/src/protocols/quake/three.rs b/src/protocols/quake/three.rs index e2c2f27..144ac1c 100644 --- a/src/protocols/quake/three.rs +++ b/src/protocols/quake/three.rs @@ -15,7 +15,7 @@ impl QuakeClient for QuakeThree { } fn get_response_header<'a>() -> &'a [u8] { - &[0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6F, 0x6E, 0x73, 0x65, 0x0A] + "statusResponse\n".as_bytes() } fn parse_player_string(data: Iter<&str>) -> GDResult { diff --git a/src/protocols/quake/two.rs b/src/protocols/quake/two.rs index 5f00b98..7d03ae2 100644 --- a/src/protocols/quake/two.rs +++ b/src/protocols/quake/two.rs @@ -26,7 +26,7 @@ impl QuakeClient for QuakeTwo { } fn get_response_header<'a>() -> &'a [u8] { - &[0x70, 0x72, 0x69, 0x6E, 0x74, 0x0A] + "print\n".as_bytes() } fn parse_player_string(mut data: Iter<&str>) -> GDResult {