src/game/Laptop/BobbyRGuns.cc
static UINT8 CheckIfItemIsPurchased(UINT16 usItemNumber)
{
	UINT8	i;

	for(i=0; i<MAX_PURCHASE_AMOUNT; i++)
	{
		if( ( usItemNumber == BobbyRayPurchases[i].usBobbyItemIndex ) && ( BobbyRayPurchases[i].ubNumberPurchased != 0 ) && ( BobbyRayPurchases[i].fUsed == gfOnUsedPage ) )
			return(i);
	}
	return(BOBBY_RAY_NOT_PURCHASED);
}
// Checks to see if the clicked item is already bought or not.
Checks to see if the clicked item is already bought or not.
Checks to see if the clicked item is already bought or not .
static UINT8 CheckIfItemIsPurchased(UINT16 usItemNumber)
{
	UINT8	i;
	for(i=0; i<MAX_PURCHASE_AMOUNT; i++)
	{
		if( ( usItemNumber == BobbyRayPurchases[i].usBobbyItemIndex ) && ( BobbyRayPurchases[i].ubNumberPurchased != 0 ) && ( BobbyRayPurchases[i].fUsed == gfOnUsedPage ) )
			return(i);
	}
	return(BOBBY_RAY_NOT_PURCHASED);
}
static UINT8 CheckIfItemIsPurchased ( UINT16 usItemNumber ) { UINT8 i ; for ( i = 0 ; i < MAX_PURCHASE_AMOUNT ; i ++ ) { if ( ( usItemNumber == BobbyRayPurchases [ i ] . usBobbyItemIndex ) && ( BobbyRayPurchases [ i ] . ubNumberPurchased != 0 ) && ( BobbyRayPurchases [ i ] . fUsed == gfOnUsedPage ) ) return ( i ) ; } return ( BOBBY_RAY_NOT_PURCHASED ) ; }
Checks to see if the clicked item is already bought or not.
Checks to see if the clicked item is already bought or not .