Possibly fixing an issue with send cards.

This commit is contained in:
lotodore
2010-07-18 11:11:27 +00:00
parent e6009f6fc2
commit b2e8c7222d
+2 -1
View File
@@ -1345,10 +1345,11 @@ ServerGameStateWaitNextHand::InternalProcessPacket(boost::shared_ptr<ServerGame>
AfterHandShowCardsMessage_t *netShowCards = &packet->GetMsg()->choice.afterHandShowCardsMessage; AfterHandShowCardsMessage_t *netShowCards = &packet->GetMsg()->choice.afterHandShowCardsMessage;
boost::shared_ptr<PlayerInterface> tmpPlayer(curGame.getPlayerByUniqueId(session.playerData->GetUniqueId())); boost::shared_ptr<PlayerInterface> tmpPlayer(curGame.getPlayerByUniqueId(session.playerData->GetUniqueId()));
if (tmpPlayer) if (tmpPlayer)
{
SetPlayerResult(netShowCards->playerResult, tmpPlayer); SetPlayerResult(netShowCards->playerResult, tmpPlayer);
server->SendToAllButOnePlayers(show, session.sessionData->GetId(), SessionData::Game); server->SendToAllButOnePlayers(show, session.sessionData->GetId(), SessionData::Game);
} }
}
} }
void void