From d36745f49c62d68898a6771aed35d2b2acb5ad8b Mon Sep 17 00:00:00 2001 From: molivier Date: Fri, 2 Apr 2004 07:27:05 +0000 Subject: [PATCH] Oops... It seems this malloc/free was actually intended (part of a piece of code protected by a WORKINGLQUAKE define) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4077 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_particles.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cl_particles.c b/cl_particles.c index 18ad1fc5..790abe05 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -88,7 +88,7 @@ void fractalnoise(qbyte *noise, int size, int startgrid) startgrid = bound(0, startgrid, size); amplitude = 0xFFFF; // this gets halved before use - noisebuf = Mem_Alloc (tempmempool, size * size * sizeof (*noisebuf)); + noisebuf = malloc(size*size*sizeof(int)); memset(noisebuf, 0, size*size*sizeof(int)); for (g2 = startgrid;g2;g2 >>= 1) @@ -130,7 +130,7 @@ void fractalnoise(qbyte *noise, int size, int startgrid) for (y = 0;y < size;y++) for (x = 0;x < size;x++) *noise++ = (qbyte) (((n(x,y) - min) * 256) / max); - Mem_Free (noisebuf); + free(noisebuf); #undef n } void VectorVectors(const vec3_t forward, vec3_t right, vec3_t up) -- 2.39.2