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