diff options
author | Christoph Mallon | 2012-03-13 10:40:41 +0100 |
---|---|---|
committer | Alyssa Milburn | 2012-03-13 15:43:36 +0100 |
commit | 75efdd2d84e21f5d3d01afcc89d61289ae87e4a2 (patch) | |
tree | f62ab385a4a0a483b894f91709dc7764bcec79ab /engines/scumm | |
parent | 337d5da913477889e9b2312ecce02e52c5ddf803 (diff) | |
download | scummvm-rg350-75efdd2d84e21f5d3d01afcc89d61289ae87e4a2.tar.gz scummvm-rg350-75efdd2d84e21f5d3d01afcc89d61289ae87e4a2.tar.bz2 scummvm-rg350-75efdd2d84e21f5d3d01afcc89d61289ae87e4a2.zip |
JANITORIAL: Replace (x ? false : true) by !(x).
Diffstat (limited to 'engines/scumm')
-rw-r--r-- | engines/scumm/gfx_towns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/gfx_towns.cpp b/engines/scumm/gfx_towns.cpp index 8bffcab4a0..f86a4e56d5 100644 --- a/engines/scumm/gfx_towns.cpp +++ b/engines/scumm/gfx_towns.cpp @@ -271,7 +271,7 @@ void TownsScreen::setupLayer(int layer, int width, int height, int numCol, void l->enabled = true; _layers[0].onBottom = true; - _layers[1].onBottom = _layers[0].enabled ? false : true; + _layers[1].onBottom = !_layers[0].enabled; l->ready = true; } @@ -424,7 +424,7 @@ void TownsScreen::toggleLayers(int flag) { _layers[0].enabled = (flag & 1) ? true : false; _layers[0].onBottom = true; _layers[1].enabled = (flag & 2) ? true : false; - _layers[1].onBottom = _layers[0].enabled ? false : true; + _layers[1].onBottom = !_layers[0].enabled; _dirtyRects.clear(); _dirtyRects.push_back(Common::Rect(_width - 1, _height - 1)); |