Commit c58c01b9 authored by DailyShana's avatar DailyShana

fix MSG_CONFIRM_CARDS in tag duel

parent c4676621
...@@ -693,7 +693,7 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) { ...@@ -693,7 +693,7 @@ int TagDuel::Analyze(char* msgbuffer, unsigned int len) {
case MSG_CONFIRM_CARDS: { case MSG_CONFIRM_CARDS: {
player = BufferIO::ReadInt8(pbuf); player = BufferIO::ReadInt8(pbuf);
count = BufferIO::ReadInt8(pbuf); count = BufferIO::ReadInt8(pbuf);
if(pbuf[5] == LOCATION_HAND) { if(pbuf[5] != LOCATION_DECK) {
pbuf += count * 7; pbuf += count * 7;
NetServer::SendBufferToPlayer(players[0], STOC_GAME_MSG, offset, pbuf - offset); NetServer::SendBufferToPlayer(players[0], STOC_GAME_MSG, offset, pbuf - offset);
NetServer::ReSendToPlayer(players[1]); NetServer::ReSendToPlayer(players[1]);
......
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