diff options
author | Strangerke | 2015-12-16 21:03:34 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:34:07 +0100 |
commit | f932f392149ec0d82d659cc8c3e0e2e3b8752ba0 (patch) | |
tree | eec387d0dde645f2c02ac887736870787def0ac7 /engines/lab/dispman.cpp | |
parent | eb6854e2c75fe0abd4abc1aca0ad7567804900a0 (diff) | |
download | scummvm-rg350-f932f392149ec0d82d659cc8c3e0e2e3b8752ba0.tar.gz scummvm-rg350-f932f392149ec0d82d659cc8c3e0e2e3b8752ba0.tar.bz2 scummvm-rg350-f932f392149ec0d82d659cc8c3e0e2e3b8752ba0.zip |
LAB: reduce a variable scope, remove useless code
Diffstat (limited to 'engines/lab/dispman.cpp')
-rw-r--r-- | engines/lab/dispman.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/lab/dispman.cpp b/engines/lab/dispman.cpp index 5eae12da73..b9d5802dc8 100644 --- a/engines/lab/dispman.cpp +++ b/engines/lab/dispman.cpp @@ -207,10 +207,9 @@ int DisplayMan::flowText( uint16 width = x2 - x1 + 1; uint16 y = y1; char lineBuffer[256]; - const char *temp; if (centerv && output) { - temp = str; + const char *temp = str; uint16 actlines = 0; while (temp[0]) { @@ -222,7 +221,6 @@ int DisplayMan::flowText( y += ((y2 - y1 + 1) - (actlines * fontHeight)) / 2; } - temp = str; int len = 0; while (numLines && str[0]) { getLine(msgFont, lineBuffer, &str, width); |