QTfrontend/game.cpp
changeset 324 f4c109c82a0c
parent 318 46a43b02bbb3
child 339 7535ab6c3820
--- a/QTfrontend/game.cpp	Sat Jan 13 22:12:30 2007 +0000
+++ b/QTfrontend/game.cpp	Sat Jan 13 22:32:08 2007 +0000
@@ -44,7 +44,7 @@
 void HWGame::onClientDisconnect()
 {
 	SaveDemo(cfgdir->absolutePath() + "/Demos/LastRound.hwd_" + cProtoVer);
-	emit GameStateChanged(gsFinished);
+	emit GameStateChanged(gsStopped);
 }
 
 void HWGame::SendTeamConfig(int index)
@@ -157,6 +157,14 @@
 			emit GameStats(msg.at(2), QString::fromUtf8(msg.mid(3)));
 			break;
 		}
+		case 'Q': {
+			emit GameStateChanged(gsInterrupted);
+			break;
+		}
+		case 'q': {
+			emit GameStateChanged(gsFinished);
+			break;
+		}
 		default: {
 			if (gameType == gtNet)
 			{