From fa94d1b90506eee54ec757b686bea8874779058f Mon Sep 17 00:00:00 2001 From: gewlitys Date: Wed, 23 Apr 2003 17:46:30 +0000 Subject: [PATCH] Fix problem with subtitle caching (bug #322) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@928 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/comm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/comm.c b/sc2/src/sc2code/comm.c index 04b9656ee..9ff1291e4 100644 --- a/sc2/src/sc2code/comm.c +++ b/sc2/src/sc2code/comm.c @@ -106,7 +106,7 @@ static int subtitle_state = DONE_SUBTITLE; static Mutex subtitle_mutex; int do_subtitles (UNICODE *pStr); -static UNICODE *last_subtitle; +static volatile UNICODE *last_subtitle; static TFB_Image *subtitle_cache; /* _count_lines - mostly stolen from add_text, just sees how many lines @@ -744,6 +744,8 @@ RefreshResponses (PENCOUNTER_STATE pES) static void FeedbackPlayerPhrase (UNICODE *pStr) { + last_subtitle = NULL; + SetContext (SpaceContext); BatchGraphics ();