--- a/QTfrontend/game.cpp Fri Jan 14 00:31:21 2011 +0100
+++ b/QTfrontend/game.cpp Sat Jan 15 16:44:32 2011 +0100
@@ -56,7 +56,7 @@
emit HaveRecord(true, demo);
break;
default:
- if (gameState == gsInterrupted) emit HaveRecord(false, demo);
+ if (gameState == gsInterrupted || gameState == gsHalted) emit HaveRecord(false, demo);
else if (gameState == gsFinished) emit HaveRecord(true, demo);
}
SetGameState(gsStopped);
@@ -229,6 +229,10 @@
SetGameState(gsFinished);
break;
}
+ case 'H': {
+ SetGameState(gsHalted);
+ break;
+ }
case 's': {
int size = msg.size();
QString msgbody = QString::fromUtf8(msg.mid(2).left(size - 4));
@@ -250,8 +254,8 @@
{
emit SendNet(msg);
}
- if (msg.at(1) != 's')
- demo.append(msg);
+ if (msg.at(1) != 's')
+ demo.append(msg);
}
}
}