Error out if unsupport language option is used

svn-id: r7992
This commit is contained in:
Travis Howell
2003-05-26 07:35:33 +00:00
parent 645aa837e7
commit 689ca53c8c
+4
View File
@@ -4420,6 +4420,10 @@ void SimonState::go() {
} else {
_subtitles = true;
}
if (_language == 4 || (_language > 5 && _language < 20))
error("Only English, French, German, Hebrew, Italian and Spanish are supported");
//Only English and German voice files were produced
if (_language >= 2)
_subtitles = true;