QTfrontend/game.cpp
changeset 512 efc640bb60d0
parent 497 adf1aee202c6
child 529 812682c1ab62
--- a/QTfrontend/game.cpp	Wed May 09 20:32:41 2007 +0000
+++ b/QTfrontend/game.cpp	Thu May 10 21:19:12 2007 +0000
@@ -255,17 +255,7 @@
 	}
 
 	// read demo
-	QDataStream stream(&demofile);
-	char buf[512];
-	int readbytes;
-	do
-	{
-		readbytes = stream.readRawData((char *)&buf, 512);
-		toSendBuf.append(QByteArray((char *)&buf, readbytes));
-		//SendIPC(QByteArray((char *)&buf, readbytes));
-
-	} while (readbytes > 0);
-	demofile.close();
+	toSendBuf = demofile.readAll();
 
 	// run engine
 	demo = new QByteArray;