Skip to content

Commit

Permalink
fix subs indices
Browse files Browse the repository at this point in the history
  • Loading branch information
XProger committed Feb 19, 2019
1 parent b1897e6 commit 1833cb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/gameflow.h
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ namespace TR {
}

bool checkWebDub(Version version, int track) {
if ((version & VER_TR1) && (track >= 22 && track <= 56 && track != 24)) {
if (getSubs(version, track) != STR_EMPTY) {
int lang = Core::settings.audio.language + STR_LANG_EN;
return lang != STR_LANG_ES && lang != STR_LANG_IT && lang != STR_LANG_PL && lang != STR_LANG_PT;
}
Expand Down
7 changes: 7 additions & 0 deletions src/lang.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ enum StringID {
// TR1 subtitles
, STR_TR1_SUB_22 // CUT4
, STR_TR1_SUB_23 // CUT1
, STR_TR1_SUB_24
, STR_TR1_SUB_25 // CUT3
, STR_TR1_SUB_26
, STR_TR1_SUB_27
Expand Down Expand Up @@ -431,6 +432,7 @@ const char *STR_EN[] = { ""
"I don't know where his little jackrabbit-frog-legs are runnin' him to"
"You'll have to ask Ms. Natla"
"Thank you. I will."
/* 24 */ , ""
/* 25 */ ,
"\0Here lies Tihocan"
"...one of the two just rulers of Atlantis..."
Expand Down Expand Up @@ -662,6 +664,7 @@ const char *STR_FR[] = { ""
// TR1 subtitles by Zellphie
/* 22 */ , ""
/* 23 */ , ""
/* 24 */ , ""
/* 25 */ , ""
/* 26 */ , "Bienvenue chez moi! je vais vous faire visiter."
/* 27 */ , "Utilisez les touches fl)ech)ees pour@aller dans le salon de musique."
Expand Down Expand Up @@ -887,6 +890,7 @@ const char *STR_DE[] = { "" // by Oktopaps
// TR1 subtitles
/* 22 */ , ""
/* 23 */ , ""
/* 24 */ , ""
/* 25 */ , ""
/* 26 */ , "Willkommen bei mir daheim.@Lass uns einen kleinen Rundgang machen."
/* 27 */ , "Benutz das Steuerkreuz, um ins Musikzimmer zu gehen."
Expand Down Expand Up @@ -1112,6 +1116,7 @@ const char *STR_ES[] = { ""
// TR1 subtitles
/* 22 */ , ""
/* 23 */ , ""
/* 24 */ , ""
/* 25 */ , ""
/* 26 */ , "Bienvenidos a mi casa, Te llevar)e en un tour guiado."
/* 27 */ , "Utiliza la tecla de control para llegar a@la habitaci)on de la m)usica."
Expand Down Expand Up @@ -1337,6 +1342,7 @@ const char *STR_IT[] = { ""
// TR1 subtitles
/* 22 */ , ""
/* 23 */ , ""
/* 24 */ , ""
/* 25 */ , ""
/* 26 */ , "Benvenuto nella mia casa."
/* 27 */ , "Usa i tasti di controllo per andare nella stanza della musica."
Expand Down Expand Up @@ -1562,6 +1568,7 @@ const char *STR_PL[] = { ""
// TR1 subtitles
/* 22 */ , ""
/* 23 */ , ""
/* 24 */ , ""
/* 25 */ , ""
/* 26 */ , "Welcome to my home!@I'll take you on a guided tour."
/* 27 */ , "Use the directional buttons to go into the music room."
Expand Down

0 comments on commit 1833cb1

Please sign in to comment.