QTfrontend/game.cpp
changeset 7180 53ffc8853008
parent 7130 fcab1fd02bc6
child 7198 5debd5fe526e
equal deleted inserted replaced
7176:fb4b0c6dfdbd 7180:53ffc8853008
    51 
    51 
    52 void HWGame::onClientDisconnect()
    52 void HWGame::onClientDisconnect()
    53 {
    53 {
    54     switch (gameType)
    54     switch (gameType)
    55     {
    55     {
    56         case gtSave:
    56         case gtDemo:
       
    57             // for video recording we need demo anyway 
       
    58             emit HaveRecord(rtNeither, demo);
       
    59             break;
       
    60         case gtNet:
       
    61             emit HaveRecord(rtDemo, demo);
       
    62             break;
       
    63         default:
    57             if (gameState == gsInterrupted || gameState == gsHalted)
    64             if (gameState == gsInterrupted || gameState == gsHalted)
    58                 emit HaveRecord(false, demo);
    65                 emit HaveRecord(rtSave, demo);
    59             else if (gameState == gsFinished)
    66             else if (gameState == gsFinished)
    60                 emit HaveRecord(true, demo);
    67                 emit HaveRecord(rtDemo, demo);
    61             break;
       
    62         case gtDemo:
       
    63             break;
       
    64         case gtNet:
       
    65             emit HaveRecord(true, demo);
       
    66             break;
       
    67         default:
       
    68             if (gameState == gsInterrupted || gameState == gsHalted) emit HaveRecord(false, demo);
       
    69             else if (gameState == gsFinished) emit HaveRecord(true, demo);
       
    70     }
    68     }
    71     SetGameState(gsStopped);
    69     SetGameState(gsStopped);
    72 }
    70 }
    73 
    71 
    74 void HWGame::commonConfig()
    72 void HWGame::commonConfig()