Skip to content

Commit

Permalink
Fix #510, but only affects singleplayer
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Nov 30, 2024
1 parent 9fe5291 commit 168beb4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Plugins/Renderer/gl_light.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,12 @@ bool R_IsDLightFlashlight(dlight_t *dl)
//CL_PlayerFlashlight:
//dl = efx.CL_AllocDlight (1);

if (dl->key == 1)
if (gEngfuncs.GetMaxClients() <= 1)
{
return true;
if (dl->key == 1)
{
return true;
}
}

return false;
Expand Down

0 comments on commit 168beb4

Please sign in to comment.