aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/screen.cpp
diff options
context:
space:
mode:
authorBenjamin Haisch2008-08-19 14:22:19 +0000
committerWillem Jan Palenstijn2011-11-20 22:43:05 +0100
commitb287588149b796f28570b99af1f83ebd814bcde1 (patch)
tree3a813598e74bd99b4503554835d8118ec240e962 /engines/toltecs/screen.cpp
parent2930003864ee02f675948a5e35cbf8ac8c4d744b (diff)
downloadscummvm-rg350-b287588149b796f28570b99af1f83ebd814bcde1.tar.gz
scummvm-rg350-b287588149b796f28570b99af1f83ebd814bcde1.tar.bz2
scummvm-rg350-b287588149b796f28570b99af1f83ebd814bcde1.zip
TOLTECS: Clear the text duration first in updateTalkText before adding text lines (else the durations add up and the text stays on screen a really long time)
Diffstat (limited to 'engines/toltecs/screen.cpp')
-rw-r--r--engines/toltecs/screen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/toltecs/screen.cpp b/engines/toltecs/screen.cpp
index 569ed2ecab..13e490b407 100644
--- a/engines/toltecs/screen.cpp
+++ b/engines/toltecs/screen.cpp
@@ -719,6 +719,7 @@ void Screen::updateTalkText(int16 slotIndex, int16 slotOffset) {
width = 0;
length = 0;
+ item->duration = 0;
item->rectCount = 0;
Font font(_vm->_res->load(_fontResIndexArray[item->fontNum]));