make sure lights are unlinked, and clear light lists even when loading saves as saves may be from different levels
This commit is contained in:
parent
807043b995
commit
04c29dcf4b
2 changed files with 5 additions and 4 deletions
|
|
@ -646,6 +646,7 @@ void FDynamicLight::CollectWithinRadius(const DVector3 &opos, FSection *section,
|
|||
|
||||
void FDynamicLight::LinkLight()
|
||||
{
|
||||
UnlinkLight();
|
||||
if (radius>0)
|
||||
{
|
||||
// passing in radius*radius allows us to do a distance check without any calls to sqrt
|
||||
|
|
@ -664,7 +665,7 @@ void FDynamicLight::LinkLight()
|
|||
// Deletes the link lists
|
||||
//
|
||||
//==========================================================================
|
||||
void FDynamicLight::UnlinkLight ()
|
||||
void FDynamicLight::UnlinkLight()
|
||||
{
|
||||
|
||||
for(int i = 0; i < touchlists.wall_tlist.SSize(); i++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue