- subtitle_text = (char *)FS_LoadFile(subtitlesfile, cls.permanentmempool, false, NULL);
+ if (gamemode == GAME_BLOODOMNICIDE)
+ {
+ char overridename[MAX_QPATH];
+ cvar_t *langcvar;
+
+ langcvar = Cvar_FindVar("language");
+ subtitle_text = NULL;
+ if (langcvar)
+ {
+ dpsnprintf(overridename, sizeof(overridename), "script/locale/%s/%s", langcvar->string, subtitlesfile);
+ subtitle_text = (char *)FS_LoadFile(overridename, cls.permanentmempool, false, NULL);
+ }
+ if (!subtitle_text)
+ subtitle_text = (char *)FS_LoadFile(subtitlesfile, cls.permanentmempool, false, NULL);
+ }
+ else
+ {
+ subtitle_text = (char *)FS_LoadFile(subtitlesfile, cls.permanentmempool, false, NULL);
+ }