Permalink
Browse files

remove debug code

  • Loading branch information...
mukunda- committed Jun 18, 2014
1 parent 3e92407 commit 14e22682771417e1c8ece8e8e6163e29e05f21c6
Showing with 2 additions and 4 deletions.
  1. +2 −4 demoheader.php
View
@@ -14,10 +14,8 @@ class DemoHeader {
function __construct( $filename ) {
$file = fopen( $filename, "rb" );
$data = trim(fread( $file, 8 ));
echo "{ $data }";
if( $data != "HL2DEMO" ) return;
echo "{ $data }";
$data = trim(fread( $file, 8 ));
if( $data != "HL2DEMO" ) return;
$data = unpack( "idp/inp", fread( $file, 8 ) );
$this->demo_protocol = $data['dp'];
$this->network_protocol = $data['np'];

0 comments on commit 14e2268

Please sign in to comment.