DRASCULA: Fix bug #3069977 ("Grafic Glitches in text")

If response() loads an image into backSurface, we need to restore the
conversation charset to it once we're done. This may very well fix a
few other similar bugs, but I haven't verified that.

svn-id: r52845
This commit is contained in:
Torbjörn Andersson 2010-09-21 17:57:02 +00:00
parent 88e25e6f25
commit 76f2d3d78b

View File

@ -287,8 +287,12 @@ void DrasculaEngine::response(int function) {
playTalkSequence(function);
if (currentChapter == 2) {
if (function == 16 || function == 20 || function == 23 || function == 29 || function == 31)
bool reloadConversationCharset = false;
if (function == 16 || function == 20 || function == 23 || function == 29 || function == 31) {
reloadConversationCharset = true;
loadPic(menuBackground, backSurface);
}
if (function == 16)
animation_16_2();
@ -300,6 +304,9 @@ void DrasculaEngine::response(int function) {
animation_29_2();
else if (function == 31)
animation_31_2();
if (reloadConversationCharset)
loadPic("car.alg", backSurface);
} else if (currentChapter == 3) {
grr();
}