Skip to content

Commit

Permalink
Delay deletion of light entities by a frame to prevent overloading st…
Browse files Browse the repository at this point in the history
…artup
  • Loading branch information
MarioSMB committed Oct 26, 2024
1 parent 779812a commit 7bfa4d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/quake/server/world.qc
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,8 @@ spawnfunc(light)
{
if(!this.targetname || this.targetname == "")
{ // inert light
delete(this);
setthink(this, SUB_Remove);
this.nextthink = time;
return;
}

Expand Down

0 comments on commit 7bfa4d0

Please sign in to comment.