Challenge reply should be S2A_CHALLENGE

pull/94/head
Pavel Djundik 9 years ago
parent 082d7bb690
commit 85dd439369

@ -248,7 +248,7 @@
public function testGetChallengeTwice( ) public function testGetChallengeTwice( )
{ {
$this->Socket->Queue( "\xFF\xFF\xFF\xFF" . SourceQuery::S2A_RULES . "\x11\x11\x11\x11" ); $this->Socket->Queue( "\xFF\xFF\xFF\xFF" . SourceQuery::S2A_CHALLENGE . "\x11\x11\x11\x11" );
$this->Socket->Queue( "\xFF\xFF\xFF\xFF" . SourceQuery::S2A_RULES . "\x01\x00ayy\x00lmao\x00" ); $this->Socket->Queue( "\xFF\xFF\xFF\xFF" . SourceQuery::S2A_RULES . "\x01\x00ayy\x00lmao\x00" );
$this->assertEquals( [ 'ayy' => 'lmao' ], $this->SourceQuery->GetPlayers() ); $this->assertEquals( [ 'ayy' => 'lmao' ], $this->SourceQuery->GetPlayers() );

Loading…
Cancel
Save