Commit 8fa8e54d authored by Harmonikater's avatar Harmonikater
Browse files

Fix for target being included in lights

parent f226be14
......@@ -217,13 +217,13 @@ function Bf2RenderTerrain outPath size:undefined s:10.0 =
unhide g_bf2_lightMappingTerrain
for l in lights do
(
if l.rgb != (color 255 0 0) then
if superclassof l == light and l.rgb == (color 255 0 0) then
(
l.enabled = on
l.enabled = off
)
else
(
l.enabled = off
l.enabled = on
)
)
try ( g_bf2_lightMappingWaterLight.enabled = off ) catch ()
......@@ -269,13 +269,13 @@ fn renderShadowMap outPath size:undefined s:10.0 =
bf2LightmapsPrepForRender()
move_z_geometry -0.7
oldColors = #(#(), #())
for light in lights do
for l in lights do
(
if light.enabled == on do
if l.enabled == on and superclassof l == light do
(
append oldColors[1] light
append OldColors[2] light.color
light.color = white
append oldColors[1] l
append OldColors[2] l.color
l.color = white
)
)
if size == undefined do size = t.max.x / s * 16
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment