Skip to content

Commit

Permalink
Heretic|Audio: Redefining an ambient sequence
Browse files Browse the repository at this point in the history
When redefining the current sequence, wait a random time before restarting it.
  • Loading branch information
skyjake committed Nov 12, 2020
1 parent 103dd7e commit 0a7bb77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/apps/plugins/heretic/src/p_spec.cpp
Expand Up @@ -907,7 +907,8 @@ void P_DefineAmbientSfx(int sequence, const int *seq, size_t count)
// Restart if this was the current sequence.
if (AmbSfxCurrentSeq == sequence)
{
AmbSfxPtr = ambientSeqPtr(sequence);
AmbSfxPtr = ambientSeqPtr(sequence);
AmbSfxTics = 6 * TICSPERSEC + P_Random(); // not right away, though
}
}

Expand Down

0 comments on commit 0a7bb77

Please sign in to comment.