diff options
author | Strangerke | 2014-06-21 18:45:28 +0200 |
---|---|---|
committer | Strangerke | 2014-06-21 18:45:28 +0200 |
commit | f1b14c6d31b1f7eafe4720302460c6265fb87025 (patch) | |
tree | dd08e50cf056a78ee0adaacdf3b84d0b0cbbb480 | |
parent | 7faa95bfdd7d5fd2eb2719269090f23b43bfc6bc (diff) | |
download | scummvm-rg350-f1b14c6d31b1f7eafe4720302460c6265fb87025.tar.gz scummvm-rg350-f1b14c6d31b1f7eafe4720302460c6265fb87025.tar.bz2 scummvm-rg350-f1b14c6d31b1f7eafe4720302460c6265fb87025.zip |
CGE2: Reduce the scope of some variables
-rw-r--r-- | engines/cge2/vmenu.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/cge2/vmenu.cpp b/engines/cge2/vmenu.cpp index a2f2f05389..fa4c29c1d7 100644 --- a/engines/cge2/vmenu.cpp +++ b/engines/cge2/vmenu.cpp @@ -122,13 +122,12 @@ VMenu::~VMenu() { } void VMenu::touch(uint16 mask, V2D pos, Common::KeyCode keyCode) { - int h = kFontHigh + kTextLineSpace; - int n = 0; - bool ok = false; - if (_items) { Sprite::touch(mask, pos, keyCode); + int n = 0; + bool ok = false; + int h = kFontHigh + kTextLineSpace; pos.y -= kTextVMargin - 1; if (pos.y >= 0) { if (pos.x < 0) |