Don't rerecord a demo
authorunc0rr
Sun, 09 Nov 2008 12:35:54 +0000
changeset 1490 4eb4fc12cc30
parent 1489 3e5c26b18fce
child 1491 0b1f44751509
Don't rerecord a demo
QTfrontend/game.cpp
QTfrontend/hwform.cpp
--- a/QTfrontend/game.cpp	Sun Nov 09 09:49:06 2008 +0000
+++ b/QTfrontend/game.cpp	Sun Nov 09 12:35:54 2008 +0000
@@ -48,6 +48,7 @@
 void HWGame::onClientDisconnect()
 {
 	switch (gameType) {
+		case gtDemo: break;
 		case gtNet:
 			emit HaveRecord(true, demo);
 			break;
--- a/QTfrontend/hwform.cpp	Sun Nov 09 09:49:06 2008 +0000
+++ b/QTfrontend/hwform.cpp	Sun Nov 09 12:35:54 2008 +0000
@@ -699,7 +699,7 @@
 	QByteArray demo = record;
 	QString recordFileName =
 			config->appendDateTimeToRecordName() ?
-				QDateTime::currentDateTime().toString(Qt::ISODate)
+				QDateTime::currentDateTime().toString(Qt::ISODate) :
 				"LastRound";
 
 	if (isDemo)