- Joined
- Jun 19, 2009
- Messages
- 1,491
- Reaction score
- 460
void CWndShop::AddCartItem( DWORD dwNum, CItemElem* pItemElem, CHAR cTab )
{
if( pItemElem )
{
#ifdef __QUGET_SHOP_CART_RED_CHIP_BUG_FIX
CWndShop* pwndShop = (CWndShop*)g_WndMng.GetWndBase(APP_SHOP_);
if(pwndShop)
{
LPCHARACTER lpCharacter = pwndShop->m_pMover->GetCharacter();
if(lpCharacter->m_nVenderType == 1)
{
if(g_pPlayer->m_Inventory.GetAtItemNum( II_CHP_RED ) - (int)pItemElem->GetChipCost() >= 0) //±¸¸ÅÇÏ·Á´Â Ç°¸ñÀÇ Ä¨°³¼ö ÀÌ»óÀ» °¡Áö°í ÀÖ´ÂÁö È®ÀÎ.
{
g_DPlay.SendBuyChipItem(cTab,(BYTE)(pItemElem->m_dwObjId),dwNum,pItemElem->m_dwItemId);
return;
}
else
{
g_WndMng.OpenMessageBox( _T( prj.GetText(TID_GAME_CANNT_BY_REDCHIP) ) );
return;
}
}
}
#endif
!! That is possible Let me check.There is an other bug.. if you have 0 penya and buy something with redchips, it tells taht you don't have penya ...
void CWndConfirmBuy::OnOK()
#ifdef __SHOPPING_CART
else if ( (int)pItemElem->GetChipCost() >= 0 > g_pPlayer->m_Inventory.GetAtItemNum( II_CHP_RED ) )
continue;
#endif