Made --nosubtitles a bit more efficient
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@929 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1284,7 +1284,7 @@ int ambient_anim_task(void* data)
|
|||||||
CheckSub = 1;
|
CheckSub = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (CheckSub && sub_state >= SPACE_SUBTITLE)
|
if (optSubtitles && CheckSub && sub_state >= SPACE_SUBTITLE)
|
||||||
{
|
{
|
||||||
TEXT t;
|
TEXT t;
|
||||||
|
|
||||||
@@ -2353,14 +2353,7 @@ do_subtitles (UNICODE *pStr)
|
|||||||
{
|
{
|
||||||
TEXT t;
|
TEXT t;
|
||||||
|
|
||||||
if (optSubtitles)
|
|
||||||
{
|
|
||||||
CommData.AlienTextTemplate.pStr = pStr;
|
CommData.AlienTextTemplate.pStr = pStr;
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
CommData.AlienTextTemplate.pStr = "";
|
|
||||||
}
|
|
||||||
t = CommData.AlienTextTemplate;
|
t = CommData.AlienTextTemplate;
|
||||||
|
|
||||||
CommData.AlienTextTemplate.CharCount = t.pStr - CommData.AlienTextTemplate.pStr;
|
CommData.AlienTextTemplate.CharCount = t.pStr - CommData.AlienTextTemplate.pStr;
|
||||||
|
|||||||
Reference in New Issue
Block a user