diff options
author | Strangerke | 2014-02-09 00:42:35 +0100 |
---|---|---|
committer | Strangerke | 2014-02-09 00:42:35 +0100 |
commit | b75da52cabd70ad89456e75e160e5b91ea3ac1e7 (patch) | |
tree | ab84368347a399172ee306a219ae621a9cd5a2f3 /engines/tsage/ringworld2/ringworld2_scenes2.cpp | |
parent | 0e6c4de8c644784c7404efb759a3274ccadcb20d (diff) | |
download | scummvm-rg350-b75da52cabd70ad89456e75e160e5b91ea3ac1e7.tar.gz scummvm-rg350-b75da52cabd70ad89456e75e160e5b91ea3ac1e7.tar.bz2 scummvm-rg350-b75da52cabd70ad89456e75e160e5b91ea3ac1e7.zip |
TSAGE: R2R - Reduce the scope of some variables
Diffstat (limited to 'engines/tsage/ringworld2/ringworld2_scenes2.cpp')
-rw-r--r-- | engines/tsage/ringworld2/ringworld2_scenes2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_scenes2.cpp b/engines/tsage/ringworld2/ringworld2_scenes2.cpp index f928f3635c..ad9dbf5a98 100644 --- a/engines/tsage/ringworld2/ringworld2_scenes2.cpp +++ b/engines/tsage/ringworld2/ringworld2_scenes2.cpp @@ -4872,10 +4872,10 @@ void Scene2900::Map::drawBlock(const byte *data, int xp, int yp, void Scene2900::Map::moveArea(Rect &r, int xAmt, int yAmt) { Rect tempRect = r; tempRect.translate(xAmt, yAmt); - int xpSrc, xpDest, width; - int ypSrc, ypDest, height; if (tempRect.intersects(r)) { + int xpSrc, xpDest, width; + int ypSrc, ypDest, height; if (xAmt >= 0) { xpSrc = tempRect.left; width = tempRect.width() - xAmt; |