char_cards.cpp içerisinden
Cards_pullout() aratıyoruz tamamen değiştiriyoruz alttaki ile
C++:
void CHARACTER::Cards_pullout()
{
DWORD empty_space = GetEmptySpaceInHand();
if (empty_space == -1)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("OKAY_CARD_ENOUGH_SPACE_ON_HAND"));
return;
}
if (character_cards.cards_left < 1)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("OKAY_CARD_ENOUGH_CARDS"));
return;
}
if (GetAllCardsCount() >= 5)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("OKAY_CARD_ENOUGH_SPACE_ON_TABLE"));
return;
}
for (BYTE i = 0; i < 5; i++)
{
if (empty_space == -1)
break;
if (character_cards.cards_left < 1)
break;
if (GetAllCardsCount() >= 5)
break;
RandomizeCards();
SendUpdatedInformations();
}
}