aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/teenagent/scene.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp
index bc7a95e66b..239e1d52b5 100644
--- a/engines/teenagent/scene.cpp
+++ b/engines/teenagent/scene.cpp
@@ -1006,16 +1006,11 @@ Common::Point Scene::messagePosition(const Common::String &str, Common::Point po
}
uint Scene::messageDuration(const Common::String &str) {
- uint words = 1;
- for(uint i = 0; i < str.size(); ++i) {
- if (str[i] == ' ' || str[i] == '\n')
- ++words;
- }
- words *= 7; //add text speed here
- if (words < 15)
- words = 15;
-
- return words;
+ uint chars = str.size();
+ //to be discovered
+ if (chars < 10)
+ chars = 10;
+ return chars;
}