diff options
author | Strangerke | 2015-11-27 15:05:41 +0100 |
---|---|---|
committer | Strangerke | 2015-11-27 15:05:41 +0100 |
commit | 9d6ae42f655bd1c3797f949763c73ecf8cbf6b53 (patch) | |
tree | 52f5965ffa726a255a5bf251e9fddefe832fd303 /engines | |
parent | fe916f17941ecb383d9f19c7fc046af3816cd73f (diff) | |
download | scummvm-rg350-9d6ae42f655bd1c3797f949763c73ecf8cbf6b53.tar.gz scummvm-rg350-9d6ae42f655bd1c3797f949763c73ecf8cbf6b53.tar.bz2 scummvm-rg350-9d6ae42f655bd1c3797f949763c73ecf8cbf6b53.zip |
MORTEVIELLE: Reduce the scope of a variable
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mortevielle/utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/mortevielle/utils.cpp b/engines/mortevielle/utils.cpp index cbc22e4886..651bd5bf57 100644 --- a/engines/mortevielle/utils.cpp +++ b/engines/mortevielle/utils.cpp @@ -1728,12 +1728,12 @@ void MortevielleEngine::showMoveMenuAlert() { void MortevielleEngine::showConfigScreen() { // FIXME: need a DOS palette, index 9 (light blue). Also we should show DOS font here Common::String tmpStr; - int width, cy = 0; + int cy = 0; clearScreen(); do { ++cy; tmpStr = getString(cy + kStartingScreenStringIndex); - width = _screenSurface->getStringWidth(tmpStr); + int width = _screenSurface->getStringWidth(tmpStr); _text->displayStr(tmpStr, 320 - width / 2, cy * 8, 80, 1, 2); } while (cy != 20); |