]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed a couple warnings
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Aug 2003 05:13:31 +0000 (05:13 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 23 Aug 2003 05:13:31 +0000 (05:13 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3404 d7cf8633-e32d-0410-b094-e92efae38249

cl_particles.c
collision.c

index 7e4221b48937997b4e2226882e83b622862138a4..52b5c9b51d3a1f15a88222baa81875d92885cfc8 100644 (file)
@@ -431,11 +431,10 @@ void CL_SpawnDecalParticleForPoint(const vec3_t org, float maxdist, float size,
        int i;
        float bestfrac, bestorg[3], bestnormal[3];
        float frac, v[3], normal[3], org2[3];
-       void *besthitent;
 #ifdef WORKINGLQUAKE
-       void *hitent;
+       void *besthitent = NULL, *hitent;
 #else
-       entity_render_t *hitent;
+       entity_render_t *besthitent = NULL, *hitent;
 #endif
        bestfrac = 10;
        for (i = 0;i < 32;i++)
index 4418bc664a9078ac7a68838f1fe63be65c9efb20..196dd408f50faa93d1859a1c483668cc0fc76f91 100644 (file)
@@ -349,7 +349,6 @@ colbrushf_t *Collision_NewBrushFromPlanes(mempool_t *mempool, int numoriginalpla
                if (numplanes >= 256)
                {
                        Con_Printf("Mod_Q3BSP_LoadBrushes: failed to build collision brush: too many planes for buffer\n");
-                       Winding_Free(w);
                        return NULL;
                }