aboutsummaryrefslogtreecommitdiff
path: root/engines/toon/toon.cpp
diff options
context:
space:
mode:
authorSylvain Dupont2011-02-05 13:12:42 +0000
committerSylvain Dupont2011-02-05 13:12:42 +0000
commit69a88e315cd4e5cb2062b80c206b3ce5c965369a (patch)
tree1b1a77e50c613d5dbbb86da0e68d51ffa90fa144 /engines/toon/toon.cpp
parent58884b1244e2ff88aeeec4d5f281c56ec9ba3139 (diff)
downloadscummvm-rg350-69a88e315cd4e5cb2062b80c206b3ce5c965369a.tar.gz
scummvm-rg350-69a88e315cd4e5cb2062b80c206b3ce5c965369a.tar.bz2
scummvm-rg350-69a88e315cd4e5cb2062b80c206b3ce5c965369a.zip
TOON: Fix formatting issues
svn-id: r55787
Diffstat (limited to 'engines/toon/toon.cpp')
-rw-r--r--engines/toon/toon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/toon/toon.cpp b/engines/toon/toon.cpp
index a9b0d7aa5e..d7168c2843 100644
--- a/engines/toon/toon.cpp
+++ b/engines/toon/toon.cpp
@@ -421,8 +421,8 @@ void ToonEngine::render() {
// add a little sleep here if needed.
int32 newMillis = (int32)_system->getMillis();
- if(newMillis - _lastRenderTime < _tickLength) {
- int32 sleepMs = _tickLength - ( _system->getMillis() - _lastRenderTime );
+ if (newMillis - _lastRenderTime < _tickLength) {
+ int32 sleepMs = _tickLength - (newMillis - _lastRenderTime);
assert(sleepMs >= 0);
_system->delayMillis(sleepMs);
}