Skip to content

Commit

Permalink
VOYEUR: Invert check on getBoltGroup in getComputerBrush for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Mar 5, 2014
1 parent bc8486a commit 7808af7
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions engines/voyeur/voyeur_game.cpp
Expand Up @@ -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() {
Expand Down

0 comments on commit 7808af7

Please sign in to comment.