Description:
Disable extra sound effect outside of debug mode again.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -481,11 +481,11 | |||
|
481 | 481 | Stopwatch stopWatch = new Stopwatch(); |
|
482 | 482 | stopWatch.Start(); |
|
483 | 483 | |
|
484 |
|
|
|
484 | #if DEBUG | |
|
485 | 485 | float volume = 1.0f; |
|
486 | 486 | float pitch = 0.0f; |
|
487 | 487 | float pan = 0.0f; |
|
488 |
|
|
|
488 | #endif | |
|
489 | 489 | |
|
490 | 490 | KeyboardState keyboardCur = Keyboard.GetState(); |
|
491 | 491 | MouseState mouseCur = Mouse.GetState(); |
@@ -493,14 +493,14 | |||
|
493 | 493 | #region input |
|
494 | 494 | |
|
495 | 495 | #region misc_keys |
|
496 |
|
|
|
496 | #if DEBUG | |
|
497 | 497 | if (keyboardCur.IsKeyDown(Keys.OemBackslash) |
|
498 | 498 | && keyboardPrev.IsKeyUp(Keys.OemBackslash) |
|
499 | 499 | && keyboardCur.IsKeyDown(Keys.LeftShift)) |
|
500 | 500 | { |
|
501 | 501 | sound.Play(volume, pitch, pan); |
|
502 | 502 | } |
|
503 |
|
|
|
503 | #endif | |
|
504 | 504 | #endregion misc_keys |
|
505 | 505 | #endregion input |
|
506 | 506 |
You need to be logged in to leave comments.
Login now