/* ================ D_InitCaches ================ */ void D_InitCaches (void *buffer, int size) { // if (!msg_suppress_1) // Con_Printf ("%ik surface cache\n", size/1024); sc_size = size - GUARDSIZE; sc_base = (surfcache_t *)buffer; sc_rover = sc_base; sc_base->next = NULL; sc_base->owner = NULL; sc_base->size = sc_size; D_ClearCacheGuard (); }
/* ================ D_InitCaches ================ */ void D_InitCaches (void *buffer, int size) { // Prevent unwanted printouts if (!msg_suppress_1 && con_x == 0) Con_SafePrintf ("%ik surface cache\n", size/1024); sc_size = size - GUARDSIZE; sc_base = (surfcache_t *)buffer; sc_rover = sc_base; sc_base->next = NULL; sc_base->owner = NULL; sc_base->size = sc_size; D_ClearCacheGuard (); }