Skip to content

Commit

Permalink
Fixed|Audio|Client: Misinterpreted sound ID (-1) when trying to cache…
Browse files Browse the repository at this point in the history
… waveform data
  • Loading branch information
danij-deng committed Nov 28, 2015
1 parent f799742 commit 324f9ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/apps/client/src/audio/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,8 @@ DENG2_PIMPL(System)
*/
void sfxStartLogical(dint soundIdAndFlags, mobj_t *emitter)
{
if(soundIdAndFlags <= 0) return;

dint const soundId = (soundIdAndFlags & ~DDSF_FLAG_MASK);

// Cache the sound sample associated with @a soundId (if necessary)
Expand Down

0 comments on commit 324f9ab

Please sign in to comment.