QTfrontend/game.cpp
changeset 324 f4c109c82a0c
parent 318 46a43b02bbb3
child 339 7535ab6c3820
equal deleted inserted replaced
323:ea947f2c3d2f 324:f4c109c82a0c
    42 }
    42 }
    43 
    43 
    44 void HWGame::onClientDisconnect()
    44 void HWGame::onClientDisconnect()
    45 {
    45 {
    46 	SaveDemo(cfgdir->absolutePath() + "/Demos/LastRound.hwd_" + cProtoVer);
    46 	SaveDemo(cfgdir->absolutePath() + "/Demos/LastRound.hwd_" + cProtoVer);
    47 	emit GameStateChanged(gsFinished);
    47 	emit GameStateChanged(gsStopped);
    48 }
    48 }
    49 
    49 
    50 void HWGame::SendTeamConfig(int index)
    50 void HWGame::SendTeamConfig(int index)
    51 {
    51 {
    52 	LocalCFG(teams[index]);
    52 	LocalCFG(teams[index]);
   155 		}
   155 		}
   156 		case 'i': {
   156 		case 'i': {
   157 			emit GameStats(msg.at(2), QString::fromUtf8(msg.mid(3)));
   157 			emit GameStats(msg.at(2), QString::fromUtf8(msg.mid(3)));
   158 			break;
   158 			break;
   159 		}
   159 		}
       
   160 		case 'Q': {
       
   161 			emit GameStateChanged(gsInterrupted);
       
   162 			break;
       
   163 		}
       
   164 		case 'q': {
       
   165 			emit GameStateChanged(gsFinished);
       
   166 			break;
       
   167 		}
   160 		default: {
   168 		default: {
   161 			if (gameType == gtNet)
   169 			if (gameType == gtNet)
   162 			{
   170 			{
   163 				emit SendNet(msg);
   171 				emit SendNet(msg);
   164 			}
   172 			}