X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=model_shared.c;h=2be02ff9b017610520bbc8189bb624096b7284e3;hb=2af7bf1a4eb9a5c9a1cfe76f9f8690523bafbd3e;hp=2061c03eaeffe8b658d0fc9ee0fc018cb3e5d0f8;hpb=d0b62751636ffda4720ee9a4f8e829474f6e699c;p=xonotic%2Fdarkplaces.git diff --git a/model_shared.c b/model_shared.c index 2061c03e..2be02ff9 100644 --- a/model_shared.c +++ b/model_shared.c @@ -3732,7 +3732,7 @@ static void Mod_GenerateLightmaps_LightPoint(dp_model_t *model, const vec3_t pos continue; if (model && model->TraceLine) { - model->TraceLine(model, NULL, NULL, &trace, pos, lightorigin, SUPERCONTENTS_VISBLOCKERMASK); + model->TraceLine(model, NULL, NULL, &trace, pos, lightorigin, SUPERCONTENTS_VISBLOCKERMASK, SUPERCONTENTS_SKY); if (trace.fraction < 1) continue; } @@ -3934,7 +3934,7 @@ static void Mod_GenerateLightmaps_SamplePoint(const float *pos, const float *nor if (!normal) { // for light grid we'd better check visibility of the offset point - cl.worldmodel->TraceLine(cl.worldmodel, NULL, NULL, &trace, pos, offsetpos, SUPERCONTENTS_VISBLOCKERMASK); + cl.worldmodel->TraceLine(cl.worldmodel, NULL, NULL, &trace, pos, offsetpos, SUPERCONTENTS_VISBLOCKERMASK, SUPERCONTENTS_SKY); if (trace.fraction < 1) VectorLerp(pos, trace.fraction, offsetpos, offsetpos); }