patch-code_client_snd_dma_c 638 B

123456789101112131415161718192021222324
  1. $OpenBSD: patch-code_client_snd_dma_c,v 1.2 2012/03/18 15:47:28 kirby Exp $
  2. --- code/client/snd_dma.c.orig Sat Dec 24 14:29:31 2011
  3. +++ code/client/snd_dma.c Tue Mar 6 22:44:31 2012
  4. @@ -1219,7 +1219,6 @@ void S_Update_(void) {
  5. static float lastTime = 0.0f;
  6. float ma, op;
  7. float thisTime, sane;
  8. - static int ot = -1;
  9. if ( !s_soundStarted || s_soundMuted ) {
  10. return;
  11. @@ -1229,11 +1228,6 @@ void S_Update_(void) {
  12. // Updates s_soundtime
  13. S_GetSoundtime();
  14. -
  15. - if (s_soundtime == ot) {
  16. - return;
  17. - }
  18. - ot = s_soundtime;
  19. // clear any sound effects that end before the current time,
  20. // and start any new sounds