engine/zone.c
/*	Throw things out until the hunk can be expanded to the given point
*/
Throw things out until the hunk can be expanded to the given point
Throw things out until the hunk can be expanded to the given point
void Cache_FreeLow (int new_low_hunk)
{
	cache_system_t	*c;
	for(;;)
	{
		c = cache_head.next;
		if (c == &cache_head)
			return;		
		if ((byte *)c >= hunk_base + new_low_hunk)
			return;		
		Cache_Move ( c );	
	}
}
void Cache_FreeLow ( int new_low_hunk ) { cache_system_t * c ; for ( ; ; ) { c = cache_head . next ; if ( c == & cache_head ) return ; if ( ( byte * ) c >= hunk_base + new_low_hunk ) return ; Cache_Move ( c ) ; } }
Throw things out until the hunk can be expanded to the given point
Throw things out until the hunk can be expanded to the given point
// nothing in cache at all // there is space to grow the hunk // reclaim the space