QTfrontend/game.cpp
changeset 157 8e3e11bb0a5f
parent 149 aae256899c49
child 172 5294ada3910b
--- a/QTfrontend/game.cpp	Thu Sep 21 11:35:20 2006 +0000
+++ b/QTfrontend/game.cpp	Thu Sep 21 17:57:35 2006 +0000
@@ -73,7 +73,7 @@
 
 void HWGame::ClientDisconnect()
 {
-	SaveDemo(cfgdir->absolutePath() + "/Demos/demo.hwd_1");
+	SaveDemo(cfgdir->absolutePath() + "/Demos/LastRound.hwd_1");
     IPCSocket->deleteLater();
 	IPCSocket = 0;
 	deleteLater();
@@ -277,6 +277,9 @@
 
 void HWGame::SaveDemo(const QString & filename)
 {
+	demo->replace(QByteArray("\x02TL"), QByteArray("\x02TD"));
+	demo->replace(QByteArray("\x02TN"), QByteArray("\x02TD"));
+
 	QFile demofile(filename);
 	if (!demofile.open(QIODevice::WriteOnly))
 	{