QTfrontend/game.cpp
changeset 5781 1fa54e5ea479
parent 5772 c09c50efe8b5
child 5865 35387d27f73a
equal deleted inserted replaced
5780:528dd4a14861 5781:1fa54e5ea479
    51 }
    51 }
    52 
    52 
    53 void HWGame::onClientDisconnect()
    53 void HWGame::onClientDisconnect()
    54 {
    54 {
    55     switch (gameType) {
    55     switch (gameType) {
    56         case gtDemo: break;
    56         case gtDemo: 
       
    57             if (gameState == gsInterrupted || gameState == gsHalted) emit HaveRecord(false, demo);
       
    58             break;
    57         case gtNet:
    59         case gtNet:
    58             emit HaveRecord(true, demo);
    60             emit HaveRecord(true, demo);
    59             break;
    61             break;
    60         default:
    62         default:
    61             if (gameState == gsInterrupted || gameState == gsHalted) emit HaveRecord(false, demo);
    63             if (gameState == gsInterrupted || gameState == gsHalted) emit HaveRecord(false, demo);