Пример #1
0
/* <b9db7> ../engine/sv_upld.c:276 */
void SV_MoveToOnHandList(resource_t *pResource)
{
	if (!pResource)
	{
		Con_DPrintf("Null resource passed to SV_MoveToOnHandList\n");
		return;
	}

	SV_RemoveFromResourceList(pResource);
	SV_AddToResourceList(pResource, &host_client->resourcesonhand);
}
Пример #2
0
/* <b9e76> ../engine/sv_upld.c:316 */
void SV_ClearResourceList(resource_t *pList)
{
	resource_t *p, *n;

	for( p = pList->pNext; p && p != pList; p = n )
	{
		n = p->pNext;

		SV_RemoveFromResourceList(p);
		Mem_Free(p);
	}


	pList->pPrev = pList;
	pList->pNext = pList;
}
Пример #3
0
/* <b9e76> ../engine/sv_upld.c:316 */
void SV_ClearResourceList(resource_t *pList)
{
	resource_t *p, *n;

	p = pList->pNext;
	while (p != NULL)
	{
		if (p == pList)
			break;

		n = p->pNext;
		SV_RemoveFromResourceList(p);
		Mem_Free(p);

		p = n;
	}

	pList->pPrev = pList;
	pList->pNext = pList;
}