diff -r 08a30dd92900 -r f49254ddfc67 QTfrontend/game.cpp --- a/QTfrontend/game.cpp Tue May 29 22:33:10 2012 +0200 +++ b/QTfrontend/game.cpp Tue May 29 23:04:03 2012 +0200 @@ -27,7 +27,6 @@ #include "gameuiconfig.h" #include "gamecfgwidget.h" #include "teamselect.h" -#include "KB.h" #include "proto.h" #include @@ -225,20 +224,6 @@ emit ErrorMessage(QString("Last two engine messages:\n") + QString().append(msg.mid(2)).left(size - 4)); return; } - case 'K': - { - ulong kb = msg.mid(2).toULong(); - if (kb==1) - { - qWarning("%s", KBMessages[kb - 1].toLocal8Bit().constData()); - return; - } - if (kb && kb <= KBmsgsCount) - { - emit ErrorMessage(KBMessages[kb - 1]); - } - return; - } case 'i': { emit GameStats(msg.at(2), QString::fromUtf8(msg.mid(3))); @@ -264,7 +249,6 @@ int size = msg.size(); QString msgbody = QString::fromUtf8(msg.mid(2).left(size - 4)); emit SendChat(msgbody); - // FIXME: /me command doesn't work here QByteArray buf; HWProto::addStringToBuffer(buf, "s" + HWProto::formatChatMsg(config->netNick(), msgbody) + "\x20\x20"); demo.append(buf); @@ -283,8 +267,7 @@ { emit SendNet(msg); } - if (msg.at(1) != 's') - demo.append(msg); + demo.append(msg); } } }