Skip to content

Commit

Permalink
Fixed missing railgun lights in photo mode: #75
Browse files Browse the repository at this point in the history
  • Loading branch information
apanteleev committed Apr 23, 2020
1 parent ffc9792 commit 4964247
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/client/effects.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,15 @@ void CL_RunDLights(void)
int i;
cdlight_t *dl;

if (sv_paused->integer)
{
// Don't update the persistent dlights when the game is paused (e.g. photo mode).
// Use sv_paused here because cl_paused can be nonzero in network play,
// but the game is not really paused in that case.

return;
}

dl = cl_dlights;
for (i = 0; i < MAX_DLIGHTS; i++, dl++) {
if (!dl->radius)
Expand Down

0 comments on commit 4964247

Please sign in to comment.