summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lang/english.txt3
-rw-r--r--src/openttd.cpp4
2 files changed, 7 insertions, 0 deletions
diff --git a/src/lang/english.txt b/src/lang/english.txt
index a146f851c..668d4ba46 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -3308,6 +3308,9 @@ STR_ERROR_BMPMAP_IMAGE_TYPE :{WHITE}... coul
STR_WARNING_HEIGHTMAP_SCALE_CAPTION :{WHITE}Scale warning
STR_WARNING_HEIGHTMAP_SCALE_MESSAGE :{YELLOW}Resizing source map too much is not recommended. Continue with the generation?
+# Soundset messages
+STR_WARNING_FALLBACK_SOUNDSET :{WHITE}Only a fallback sound set was found. If you want sounds, install a sound set via the content download system.
+
# Screenshot related messages
STR_MESSAGE_SCREENSHOT_SUCCESSFULLY :{WHITE}Screenshot successfully saved as '{RAW_STRING}'
STR_ERROR_SCREENSHOT_FAILED :{WHITE}Screenshot failed!
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 47f3e804a..a1559592e 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1054,6 +1054,10 @@ void SwitchToMode(SwitchMode new_mode)
case SM_MENU: // Switch to game intro menu
LoadIntroGame();
+ if (BaseSounds::ini_set == NULL && BaseSounds::GetUsedSet()->fallback) {
+ ShowErrorMessage(STR_WARNING_FALLBACK_SOUNDSET, INVALID_STRING_ID, 0, 0, true);
+ BaseSounds::ini_set = strdup(BaseSounds::GetUsedSet()->name);
+ }
break;
case SM_SAVE: // Save game