QTfrontend/game.cpp
changeset 660 7c155e849602
parent 622 cedd47d956ec
child 673 bd82104a28af
equal deleted inserted replaced
659:5eafb20566f1 660:7c155e849602
   181 				}
   181 				}
   182 			}
   182 			}
   183 			break;
   183 			break;
   184 		}
   184 		}
   185 		case 'E': {
   185 		case 'E': {
   186 			emit ErrorMessage(QString().append(msg.mid(2)).left(msg.size() - 6));
   186 			int size = msg.size();
       
   187 			emit ErrorMessage(QString().append(msg.mid(2)).left(size - 4));
   187 			return;
   188 			return;
   188 		}
   189 		}
   189 		case 'K': {
   190 		case 'K': {
   190 			ulong kb = msg.mid(2).toULong();
   191 			ulong kb = msg.mid(2).toULong();
   191 			if (kb==1) {
   192 			if (kb==1) {
   204 				emit SendNet(msg);
   205 				emit SendNet(msg);
   205 			}
   206 			}
   206 			break;
   207 			break;
   207 		}
   208 		}
   208 		case 'i': {
   209 		case 'i': {
   209 			emit GameStats(msg.at(2), QString::fromUtf8(msg.mid(3)));
   210 			int size = msg.size();
       
   211 			emit GameStats(msg.at(2), QString::fromUtf8(msg.mid(3).left(size - 5)));
   210 			break;
   212 			break;
   211 		}
   213 		}
   212 		case 'Q': {
   214 		case 'Q': {
   213 			SetGameState(gsInterrupted);
   215 			SetGameState(gsInterrupted);
   214 			break;
   216 			break;