equal
deleted
inserted
replaced
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 } |