do_subtitles doesn't abort anymore when using --nosubtitles. fixes #132

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@729 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2003-02-10 21:26:09 +00:00
parent 713a12608c
commit 1f5440f27d
+9 -5
View File
@@ -1972,9 +1972,6 @@ int
do_subtitles (UNICODE *pStr)
{
static UNICODE *last_page = NULL;;
// TODO: proper disabling of subtitles, this one prolly isn't 'safe'
if (optSubtitles == FALSE)
return 0;
if (pStr == 0)
return (subtitle_state = DONE_SUBTITLE);
@@ -1998,8 +1995,15 @@ do_subtitles (UNICODE *pStr)
{
TEXT t;
CONTEXT OldContext;
CommData.AlienTextTemplate.pStr = pStr;
if (optSubtitles)
{
CommData.AlienTextTemplate.pStr = pStr;
}
else
{
CommData.AlienTextTemplate.pStr = "";
}
t = CommData.AlienTextTemplate;
OldContext = SetContext (TaskContext);