From: havoc Date: Mon, 21 Apr 2003 11:26:22 +0000 (+0000) Subject: nudge dlights out of walls if they're too close X-Git-Tag: xonotic-v0.1.0preview~6654 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fe0d81655d6c8f5b722fea3282a99a734134b73b;p=xonotic%2Fdarkplaces.git nudge dlights out of walls if they're too close git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2974 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_main.c b/cl_main.c index 2b38f4db..fa991693 100644 --- a/cl_main.c +++ b/cl_main.c @@ -446,7 +446,8 @@ dlightsetup: //Con_Printf("dlight %i : %f %f %f : %f %f %f\n", i, org[0], org[1], org[2], red * radius, green * radius, blue * radius); memset (dl, 0, sizeof(*dl)); dl->ent = ent; - VectorCopy(org, dl->origin); + Mod_FindNonSolidLocation(org, dl->origin, cl.worldmodel, 6); + //VectorCopy(org, dl->origin); dl->radius = radius; dl->color[0] = red; dl->color[1] = green;