1
0
mirror of https://github.com/xPaw/PHP-Source-Query.git synced 2026-05-18 14:23:35 +02:00

Strict checks; implement GameID from extra data flags

This commit is contained in:
xPaw
2014-07-21 19:09:56 +03:00
parent 266cf6afe7
commit 5e84d9e873
4 changed files with 67 additions and 32 deletions
+4 -5
View File
@@ -70,21 +70,20 @@
*/
public function Get( $Length = -1 )
{
if( $Length == 0 )
if( $Length === 0 )
{
// Why even bother
return "";
return '';
}
$Remaining = $this->Remaining( );
if( $Length == -1 )
if( $Length === -1 )
{
$Length = $Remaining;
}
else if( $Length > $Remaining )
{
return "";
return '';
}
$Data = SubStr( $this->Buffer, $this->Position, $Length );