示例#1
0
void CCredits::AddCredit(char* sText)
{
	// Sanity checks...

	if (!m_pClientDE) return;


	// Add the credit...

	CCredit* pCredit = GetCredit(m_cCredits);
	if (!pCredit) return;

	if (!pCredit->Init(m_pClientDE, sText)) return;


	// Inc our credit counter...

	m_cCredits++;
}
示例#2
0
void CCredits::AddCredit(char* sText)
{
	// Sanity checks...

	if (!g_pLTClient) return;


	// Add the credit...

	CCredit* pCredit = debug_new(CCredit);
	if (!pCredit->Init(sText))
	{
		debug_delete(pCredit);
		return;
	}

	// Inc our credit counter...

	m_Credits.push_back(pCredit);
}