diff options
author | Vladimir Menshakov | 2009-11-15 11:24:20 +0000 |
---|---|---|
committer | Vladimir Menshakov | 2009-11-15 11:24:20 +0000 |
commit | 461bcae59f3bbb60071ffc69947dd02b7436cc21 (patch) | |
tree | 548c607a588dacd7ba432aa190fcf2aa30289653 | |
parent | 196401df628298f5f7b763aa1b71293aa4def705 (diff) | |
download | scummvm-rg350-461bcae59f3bbb60071ffc69947dd02b7436cc21.tar.gz scummvm-rg350-461bcae59f3bbb60071ffc69947dd02b7436cc21.tar.bz2 scummvm-rg350-461bcae59f3bbb60071ffc69947dd02b7436cc21.zip |
removed bogus message speed code
svn-id: r45918
-rw-r--r-- | engines/teenagent/scene.cpp | 15 |
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; } |