[Scummvm-cvs-logs] SF.net SVN: scummvm:[45918] scummvm/trunk/engines/teenagent/scene.cpp
megath at users.sourceforge.net
megath at users.sourceforge.net
Sun Nov 15 12:24:20 CET 2009
Revision: 45918
http://scummvm.svn.sourceforge.net/scummvm/?rev=45918&view=rev
Author: megath
Date: 2009-11-15 11:24:20 +0000 (Sun, 15 Nov 2009)
Log Message:
-----------
removed bogus message speed code
Modified Paths:
--------------
scummvm/trunk/engines/teenagent/scene.cpp
Modified: scummvm/trunk/engines/teenagent/scene.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/scene.cpp 2009-11-15 11:07:52 UTC (rev 45917)
+++ scummvm/trunk/engines/teenagent/scene.cpp 2009-11-15 11:24:20 UTC (rev 45918)
@@ -1006,16 +1006,11 @@
}
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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list