--- a/QTfrontend/game.cpp Mon Jun 11 15:52:32 2007 +0000
+++ b/QTfrontend/game.cpp Mon Jun 11 15:53:29 2007 +0000
@@ -48,8 +48,16 @@
void HWGame::onClientDisconnect()
{
- if (gameState == gsInterrupted) emit HaveRecord(false, demo);
- else if (gameState == gsFinished) emit HaveRecord(true, demo);
+ switch (gameType) {
+ case gtDemo:
+ break;
+ case gtNet:
+ emit HaveRecord(true, demo);
+ break;
+ default:
+ if (gameState == gsInterrupted) emit HaveRecord(false, demo);
+ else if (gameState == gsFinished) emit HaveRecord(true, demo);
+ }
SetGameState(gsStopped);
}
--- a/QTfrontend/hwform.cpp Mon Jun 11 15:52:32 2007 +0000
+++ b/QTfrontend/hwform.cpp Mon Jun 11 15:53:29 2007 +0000
@@ -241,7 +241,6 @@
QList<HWTeam> teams=curTeamSelWidget->getDontPlayingTeams();
QStringList tmnames;
for(QList<HWTeam>::iterator it = teams.begin(); it != teams.end(); ++it) {
- qDebug() << it->TeamName;
tmnames+=it->TeamName;
}
UpdateTeamsLists(&tmnames); // FIXME: still need more work if teamname is updated while configuring
--- a/QTfrontend/netserver.cpp Mon Jun 11 15:52:32 2007 +0000
+++ b/QTfrontend/netserver.cpp Mon Jun 11 15:53:29 2007 +0000
@@ -23,8 +23,6 @@
#include <QTcpSocket>
#include <QMessageBox>
-#include <algorithm>
-
const quint16 HWNetServer::ds_port=46631;
extern char delimeter;