[Scummvm-cvs-logs] scummvm master -> 7808af7cc53e7542b554caeea63f7bfed68abdef

Strangerke Strangerke at scummvm.org
Wed Mar 5 08:24:49 CET 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
7808af7cc5 VOYEUR: Invert check on getBoltGroup in getComputerBrush for consistency


Commit: 7808af7cc53e7542b554caeea63f7bfed68abdef
    https://github.com/scummvm/scummvm/commit/7808af7cc53e7542b554caeea63f7bfed68abdef
Author: Strangerke (strangerke at scummvm.org)
Date: 2014-03-04T23:23:08-08:00

Commit Message:
VOYEUR: Invert check on getBoltGroup in getComputerBrush for consistency

Changed paths:
    engines/voyeur/voyeur_game.cpp



diff --git a/engines/voyeur/voyeur_game.cpp b/engines/voyeur/voyeur_game.cpp
index 1f2703c..453e72b 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() {






More information about the Scummvm-git-logs mailing list