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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user