mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Change commented out Con_Printf statements in Cache_Move into
Con_DPrintf statements, so they can be used in debugging without recompiling. And no, there's no performance issue.
This commit is contained in:
parent
f9641bfadc
commit
853fbb4242
1 changed files with 2 additions and 2 deletions
|
@ -366,7 +366,7 @@ Cache_Move (cache_system_t * c)
|
||||||
// we are clearing up space at the bottom, so only allocate it late
|
// we are clearing up space at the bottom, so only allocate it late
|
||||||
new = Cache_TryAlloc (c->size, true);
|
new = Cache_TryAlloc (c->size, true);
|
||||||
if (new) {
|
if (new) {
|
||||||
// Con_Printf ("cache_move ok\n");
|
Con_DPrintf ("cache_move ok\n");
|
||||||
|
|
||||||
memcpy (new + 1, c + 1, c->size - sizeof (cache_system_t));
|
memcpy (new + 1, c + 1, c->size - sizeof (cache_system_t));
|
||||||
new->user = c->user;
|
new->user = c->user;
|
||||||
|
@ -374,7 +374,7 @@ Cache_Move (cache_system_t * c)
|
||||||
Cache_Free (c->user);
|
Cache_Free (c->user);
|
||||||
new->user->data = (void *) (new + 1);
|
new->user->data = (void *) (new + 1);
|
||||||
} else {
|
} else {
|
||||||
// Con_Printf ("cache_move failed\n");
|
Con_DPrintf ("cache_move failed\n");
|
||||||
|
|
||||||
Cache_Free (c->user); // tough luck...
|
Cache_Free (c->user); // tough luck...
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue