cvs: pear /Net_GameServerQuery/GameServerQuery Games.php /Net_GameServerQuery/GameServerQuery/Protocol Doom3.php

From: Date: Tue, 03 Aug 2004 10:24:39 +0000
Subject: cvs: pear /Net_GameServerQuery/GameServerQuery Games.php /Net_GameServerQuery/GameServerQuery/Protocol Doom3.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-22515@lists.php.net to get a copy of this message
aidan Tue Aug 3 06:24:39 2004 EDT Modified files: /pear/Net_GameServerQuery/GameServerQuery Games.php /pear/Net_GameServerQuery/GameServerQuery/Protocol Doom3.php Log: Fixed typos http://cvs.php.net/diff.php/pear/Net_GameServerQuery/GameServerQuery/Games.php?r1=1.8&r2=1.9&ty=u Index: pear/Net_GameServerQuery/GameServerQuery/Games.php diff -u pear/Net_GameServerQuery/GameServerQuery/Games.php:1.8 pear/Net_GameServerQuery/GameServerQuery/Games.php:1.9 --- pear/Net_GameServerQuery/GameServerQuery/Games.php:1.8 Tue Aug 3 06:20:38 2004 +++ pear/Net_GameServerQuery/GameServerQuery/Games.php Tue Aug 3 06:24:39 2004 @@ -16,7 +16,8 @@ // | Tom Buskens <ortega@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Games.php,v 1.8 2004/08/03 10:20:38 aidan Exp $ +// $Id: Games.php,v 1.9 2004/08/03 10:24:39 aidan Exp $ + $games['bfvietnam']['name'] = 'BattleField: Vietnam'; $games['bfvietnam']['protocol'] = 'GameSpy04'; @@ -24,7 +25,7 @@ $games['doom3']['name'] = 'Doom 3'; $games['doom3']['protocol'] = 'Doom3'; -$gaems['doom3']['queryport'] = '27666'; +$games['doom3']['queryport'] = '27666'; $games['halflife']['name'] = 'Half-Life'; $games['halflife']['protocol'] = 'HalfLife'; http://cvs.php.net/diff.php/pear/Net_GameServerQuery/GameServerQuery/Protocol/Doom3.php?r1=1.2&r2=1.3&ty=u Index: pear/Net_GameServerQuery/GameServerQuery/Protocol/Doom3.php diff -u pear/Net_GameServerQuery/GameServerQuery/Protocol/Doom3.php:1.2 pear/Net_GameServerQuery/GameServerQuery/Protocol/Doom3.php:1.3 --- pear/Net_GameServerQuery/GameServerQuery/Protocol/Doom3.php:1.2 Tue Aug 3 06:20:38 2004 +++ pear/Net_GameServerQuery/GameServerQuery/Protocol/Doom3.php Tue Aug 3 06:24:39 2004 @@ -16,7 +16,7 @@ // | Tom Buskens <ortega@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Doom3.php,v 1.2 2004/08/03 10:20:38 aidan Exp $ +// $Id: Doom3.php,v 1.3 2004/08/03 10:24:39 aidan Exp $ /** @@ -25,7 +25,7 @@ * @category Net * @package Net_GameServerQuery * @author Tom Buskens <ortega@php.net> - * @version $Revision: 1.2 $ + * @version $Revision: 1.3 $ */ class Net_GameServerQuery_Protocol_Doom3 extends Net_GameServerQuery_Protocol { @@ -58,7 +58,6 @@ */ protected function _getinfo() { - hexdump($this->_response); // Header if (!$this->_match("\xff\xffinfoResponse")) { return false; @@ -67,8 +66,7 @@ // Two integers probably, look at this later if ($this->_match("(.{4})(.{4})\\x00")) { print_r(unpack("Va", $this->_result[2])); - } - else { + } else { return false; } @@ -85,7 +83,7 @@ // Players (ping and score in here somehwere) while ($this->_match("(.)(.{6})([^\\x00]+)\\x00")) { $this->_addVar('playerid', $this->_convert->toInt($this->_result[1], 8)); - $this->_addVar('playername', $this->_result[3])); + $this->_addVar('playername', $this->_result[3]); } return $this->_output;

« previous php.pear.cvs (#22515) next »