QTfrontend/game.cpp
changeset 4430 cacda05a053e
parent 4428 2bc3d3475edf
child 4494 9585435e20f7
equal deleted inserted replaced
4429:f9a949ef955b 4430:cacda05a053e
    38   m_pTeamSelWidget(pTeamSelWidget)
    38   m_pTeamSelWidget(pTeamSelWidget)
    39 {
    39 {
    40     this->config = config;
    40     this->config = config;
    41     this->gamecfg = gamecfg;
    41     this->gamecfg = gamecfg;
    42     TeamCount = 0;
    42     TeamCount = 0;
       
    43     netSuspend = false;
    43 }
    44 }
    44 
    45 
    45 HWGame::~HWGame()
    46 HWGame::~HWGame()
    46 {
    47 {
    47     SetGameState(gsDestroyed);
    48     SetGameState(gsDestroyed);
   243             QString msgbody = QString::fromUtf8(msg.mid(2).left(size - 4));
   244             QString msgbody = QString::fromUtf8(msg.mid(2).left(size - 4));
   244             emit SendTeamMessage(msgbody);
   245             emit SendTeamMessage(msgbody);
   245             break;
   246             break;
   246         }
   247         }
   247         default: {
   248         default: {
   248             if (gameType == gtNet)
   249             if (gameType == gtNet && !netSuspend)
   249             {
   250             {
   250                 emit SendNet(msg);
   251                 emit SendNet(msg);
   251             }
   252             }
   252         if (msg.at(1) != 's')
   253         if (msg.at(1) != 's')
   253             demo.append(msg);
   254             demo.append(msg);