X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=r_lightning.c;h=8568292d098b83113f898bfc5fa773200b35fb7a;hb=d4cd2cda4a1eb2288f2acc600b823c02715d1e12;hp=b7975c6c01b4281eec6c5d529a418a66e40ebb06;hpb=cfee52a1ec9db338098789cae89ae5cf1f7a6fbf;p=xonotic%2Fdarkplaces.git diff --git a/r_lightning.c b/r_lightning.c index b7975c6c..8568292d 100644 --- a/r_lightning.c +++ b/r_lightning.c @@ -320,7 +320,7 @@ void R_DrawLightningBeams(void) dist = bound(0, dist, 1); VectorLerp(start, dist, end, org); // now we have the nearest point on the line, so sort with it - R_MeshQueue_AddTransparent(org, R_DrawLightningBeam_TransparentCallback, NULL, i, NULL); + R_MeshQueue_AddTransparent(TRANSPARENTSORT_DISTANCE, org, R_DrawLightningBeam_TransparentCallback, NULL, i, NULL); } } }