aboutsummaryrefslogtreecommitdiff
path: root/engines/hugo/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hugo/util.cpp')
-rw-r--r--engines/hugo/util.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/engines/hugo/util.cpp b/engines/hugo/util.cpp
index da917a802e..fb3da9df88 100644
--- a/engines/hugo/util.cpp
+++ b/engines/hugo/util.cpp
@@ -114,12 +114,8 @@ void Utils::Warn(bool technote, const char *format, ...) {
/* Arguments are same as printf */
/* technote TRUE if we are to refer user to technote file */
char buffer[WARNLEN];
- bool soundFl = _config.soundFl;
va_list marker;
- _config.soundFl = false; // Kill sound to allow beep sound
- HugoEngine::get().sound().initSound(RESET);
-
va_start(marker, format);
vsnprintf(buffer, WARNLEN, format, marker);
va_end(marker);
@@ -128,11 +124,6 @@ void Utils::Warn(bool technote, const char *format, ...) {
//MessageBeep(MB_ICONEXCLAMATION);
//MessageBox(hwnd, buffer, "HugoWin Warning", MB_OK | MB_ICONEXCLAMATION);
warning("Hugo warning: %s", buffer);
-
- //sndPlaySound(NULL, 0); // Stop beep and restore sound
-
- _config.soundFl = soundFl;
- HugoEngine::get().sound().initSound(RESET);
}
void Utils::Error(int error_type, const char *format, ...) {