frewetype warning is now printed to console
authordisplacer
Tue, 20 Feb 2007 21:08:46 +0000
changeset 466 bc45a038d47a
parent 465 07eca0a2546c
child 467 20d36f976b25
frewetype warning is now printed to console
QTfrontend/game.cpp
--- a/QTfrontend/game.cpp	Tue Feb 20 19:50:38 2007 +0000
+++ b/QTfrontend/game.cpp	Tue Feb 20 21:08:46 2007 +0000
@@ -24,6 +24,7 @@
 #include <QFile>
 #include <QTextStream>
 #include <QUuid>
+#include <QTextStream>
 #include <QDebug>
 
 #include "game.h"
@@ -150,6 +151,10 @@
 		}
 		case 'K': {
 			ulong kb = msg.mid(2).toULong();
+			if (kb==1) {
+			  qWarning("%s\n", KBMessages[kb - 1].toLocal8Bit().constData());
+			  return;
+			}
 			if (kb && kb <= KBmsgsCount)
 			{
 				emit ErrorMessage(KBMessages[kb - 1]);