QTfrontend/game.cpp
changeset 541 bc7be7f6d3e8
parent 533 eebb7684ac22
child 555 0376fdcc6322
equal deleted inserted replaced
540:b06c5aace2fa 541:bc7be7f6d3e8
    46 {
    46 {
    47 }
    47 }
    48 
    48 
    49 void HWGame::onClientDisconnect()
    49 void HWGame::onClientDisconnect()
    50 {
    50 {
    51 	if (gameState == gsInterrupted) emit HaveRecord(false, demo);
    51 	switch (gameType) {
    52 	else if (gameState == gsFinished) emit HaveRecord(true, demo);
    52 		case gtDemo:
       
    53 			break;
       
    54 		case gtNet:
       
    55 			emit HaveRecord(true, demo);
       
    56 			break;
       
    57 		default:
       
    58 			if (gameState == gsInterrupted) emit HaveRecord(false, demo);
       
    59 			else if (gameState == gsFinished) emit HaveRecord(true, demo);
       
    60 	}
    53 	SetGameState(gsStopped);
    61 	SetGameState(gsStopped);
    54 }
    62 }
    55 
    63 
    56 void HWGame::commonConfig()
    64 void HWGame::commonConfig()
    57 {
    65 {