Commit 55bdf120 authored by edo9300's avatar edo9300

Update

parent 5a5eeabe
......@@ -2917,10 +2917,9 @@ int DuelClient::ClientAnalyze(char * msg, unsigned int len) {
return false;
}
case MSG_HAND_RES: {
int res1 = BufferIO::ReadInt8(pbuf);
int res2 = BufferIO::ReadInt8(pbuf);
int res = BufferIO::ReadInt8(pbuf);
mainGame->stHintMsg->setVisible(false);
mainGame->showcardcode = (res1 - 1) + ((res2 - 1) << 16);
mainGame->showcardcode = ((res & 0x3) - 1) + ((((res >> 2) & 0x3) - 1) << 16);
mainGame->showcarddif = 50;
mainGame->showcardp = 0;
mainGame->showcard = 100;
......
......@@ -1257,7 +1257,7 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) {
return 1;
}
case MSG_HAND_RES: {
pbuf += 2;
pbuf += 1;
NetServer::SendBufferToPlayer(players[0], STOC_GAME_MSG, offset, pbuf - offset);
NetServer::ReSendToPlayer(players[1]);
for (auto oit = observers.begin(); oit != observers.end(); ++oit)
......
......@@ -578,7 +578,7 @@ bool SingleMode::SinglePlayAnalyze(char* msg, unsigned int len) {
break;
}
case MSG_HAND_RES: {
pbuf += 2;
pbuf += 1;
DuelClient::ClientAnalyze(offset, pbuf - offset);
break;
}
......
......@@ -1296,7 +1296,7 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
return 1;
}
case MSG_HAND_RES: {
pbuf += 2;
pbuf += 1;
NetServer::SendBufferToPlayer(players[0], STOC_GAME_MSG, offset, pbuf - offset);
NetServer::ReSendToPlayer(players[1]);
NetServer::ReSendToPlayer(players[2]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment