Description:
Disable extra sound effect outside of debug mode again.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r587:88bac2f63baa -

@@ -481,11 +481,11
481 Stopwatch stopWatch = new Stopwatch();
481 Stopwatch stopWatch = new Stopwatch();
482 stopWatch.Start();
482 stopWatch.Start();
483
483
484 // #if DEBUG
484 #if DEBUG
485 float volume = 1.0f;
485 float volume = 1.0f;
486 float pitch = 0.0f;
486 float pitch = 0.0f;
487 float pan = 0.0f;
487 float pan = 0.0f;
488 // #endif
488 #endif
489
489
490 KeyboardState keyboardCur = Keyboard.GetState();
490 KeyboardState keyboardCur = Keyboard.GetState();
491 MouseState mouseCur = Mouse.GetState();
491 MouseState mouseCur = Mouse.GetState();
@@ -493,14 +493,14
493 #region input
493 #region input
494
494
495 #region misc_keys
495 #region misc_keys
496 // #if DEBUG
496 #if DEBUG
497 if (keyboardCur.IsKeyDown(Keys.OemBackslash)
497 if (keyboardCur.IsKeyDown(Keys.OemBackslash)
498 && keyboardPrev.IsKeyUp(Keys.OemBackslash)
498 && keyboardPrev.IsKeyUp(Keys.OemBackslash)
499 && keyboardCur.IsKeyDown(Keys.LeftShift))
499 && keyboardCur.IsKeyDown(Keys.LeftShift))
500 {
500 {
501 sound.Play(volume, pitch, pan);
501 sound.Play(volume, pitch, pan);
502 }
502 }
503 // #endif
503 #endif
504 #endregion misc_keys
504 #endregion misc_keys
505 #endregion input
505 #endregion input
506
506
You need to be logged in to leave comments. Login now