- Joined
- Jun 19, 2009
- Messages
- 1,491
- Reaction score
- 460
Hi,
This is just a quick fix for the red chip buy bug.
When you doubble click the item that cost red chips it will buy it instead of adding it too the cart.
It was a quick fix(Hot fix) There might be some unknown bugs! (Haven't any discovered yet.)
In WndShop.cpp Find
and put this under it.
And define this __QUGET_SHOP_CART_RED_CHIP_BUG_FIX in versioncommon.h(in your neuz)
Have fun ^^
This is just a quick fix for the red chip buy bug.
When you doubble click the item that cost red chips it will buy it instead of adding it too the cart.
It was a quick fix(Hot fix) There might be some unknown bugs! (Haven't any discovered yet.)
In WndShop.cpp Find
PHP:
void CWndShop::AddCartItem( DWORD dwNum, CItemElem* pItemElem, CHAR cTab )
{
if( pItemElem )
{
PHP:
#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
And define this __QUGET_SHOP_CART_RED_CHIP_BUG_FIX in versioncommon.h(in your neuz)
Have fun ^^