aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur
diff options
context:
space:
mode:
authorStrangerke2014-03-05 08:23:08 +0100
committerStrangerke2014-03-05 08:23:08 +0100
commit7808af7cc53e7542b554caeea63f7bfed68abdef (patch)
tree6e94cd041e9fc64744949e6c8f876a660107886a /engines/voyeur
parentbc8486a76b7347d9342bc057708d45ab549461ae (diff)
downloadscummvm-rg350-7808af7cc53e7542b554caeea63f7bfed68abdef.tar.gz
scummvm-rg350-7808af7cc53e7542b554caeea63f7bfed68abdef.tar.bz2
scummvm-rg350-7808af7cc53e7542b554caeea63f7bfed68abdef.zip
VOYEUR: Invert check on getBoltGroup in getComputerBrush for consistency
Diffstat (limited to 'engines/voyeur')
-rw-r--r--engines/voyeur/voyeur_game.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/engines/voyeur/voyeur_game.cpp b/engines/voyeur/voyeur_game.cpp
index 1f2703c513..453e72b315 100644
--- a/engines/voyeur/voyeur_game.cpp
+++ b/engines/voyeur/voyeur_game.cpp
@@ -1258,16 +1258,17 @@ int VoyeurEngine::doComputerText(int maxLen) {
}
void VoyeurEngine::getComputerBrush() {
- if (_bVoy->getBoltGroup(0x4900)) {
- PictureResource *pic = _bVoy->boltEntry(0x490E)._picResource;
- int xp = (384 - pic->_bounds.width()) / 2;
- int yp = (240 - pic->_bounds.height()) / 2 - 4;
+ if (!_bVoy->getBoltGroup(0x4900))
+ return;
- (*_graphicsManager->_vPort)->drawPicPerm(pic, Common::Point(xp, yp));
+ PictureResource *pic = _bVoy->boltEntry(0x490E)._picResource;
+ int xp = (384 - pic->_bounds.width()) / 2;
+ int yp = (240 - pic->_bounds.height()) / 2 - 4;
- CMapResource *pal = _bVoy->boltEntry(0x490F)._cMapResource;
- pal->startFade();
- }
+ (*_graphicsManager->_vPort)->drawPicPerm(pic, Common::Point(xp, yp));
+
+ CMapResource *pal = _bVoy->boltEntry(0x490F)._cMapResource;
+ pal->startFade();
}
void VoyeurEngine::doTimeBar() {