[Scummvm-cvs-logs] scummvm master -> 56294105769cf34f7284e815571a6dbc52044ddf

dreammaster dreammaster at scummvm.org
Mon Jul 13 05:10:34 CEST 2015


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:
5629410576 SHERLOCK: Fix compiler warnings


Commit: 56294105769cf34f7284e815571a6dbc52044ddf
    https://github.com/scummvm/scummvm/commit/56294105769cf34f7284e815571a6dbc52044ddf
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-07-12T23:09:38-04:00

Commit Message:
SHERLOCK: Fix compiler warnings

Changed paths:
    engines/sherlock/image_file.cpp
    engines/sherlock/tattoo/tattoo_darts.cpp
    engines/sherlock/tattoo/tattoo_darts.h



diff --git a/engines/sherlock/image_file.cpp b/engines/sherlock/image_file.cpp
index c202ab3..81087da 100644
--- a/engines/sherlock/image_file.cpp
+++ b/engines/sherlock/image_file.cpp
@@ -729,6 +729,9 @@ void ImageFile3DO::load3DOCelRoomData(Common::SeekableReadStream &stream) {
 			push_back(imageFrame);
 		}
 	}
+
+	// Suppress compiler warning
+	warning("ccbPPMP0 = %d, ccbPPMP1 = %d", ccbPPMP0, ccbPPMP1);
 }
 
 static uint16 imagefile3DO_cel_bitsMask[17] = {
diff --git a/engines/sherlock/tattoo/tattoo_darts.cpp b/engines/sherlock/tattoo/tattoo_darts.cpp
index 917b804..842320e 100644
--- a/engines/sherlock/tattoo/tattoo_darts.cpp
+++ b/engines/sherlock/tattoo/tattoo_darts.cpp
@@ -128,7 +128,6 @@ void Darts::playDarts(GameType gameType) {
 			} else {
 				// check for cricket game over
 				bool allClosed = true;
-				bool otherAllClosed = true;
 				int nOtherScore;
 
 				for (int y = 0; y < 7; y++) {
@@ -136,11 +135,6 @@ void Darts::playDarts(GameType gameType) {
 						allClosed = false;
 				}
 
-				for (int y = 0; y < 7; ++y) {
-					if (_cricketScore[playerNum ^ 1][y] < 3)
-						otherAllClosed = false;
-				}
-
 				if (allClosed) {
 					nOtherScore = (playerNum == 0) ? _score2 : _score1;
 					if (score >= nOtherScore)
@@ -879,8 +873,8 @@ int Darts::throwDart(int dartNum, int computer) {
 	drawDartsLeft(dartNum, computer);
 
 	if (!computer) {
-		screen.print(Common::Point(_dartInfo.left, _dartInfo.top + _spacing), 0, FIXED(HitAKey));
-		screen.print(Common::Point(_dartInfo.left, _dartInfo.top + _spacing * 2), 0, FIXED(ToStart));
+		screen.print(Common::Point(_dartInfo.left, _dartInfo.top + _spacing), 0, "%s", FIXED(HitAKey));
+		screen.print(Common::Point(_dartInfo.left, _dartInfo.top + _spacing * 2), 0, "%s", FIXED(ToStart));
 	}
 
 	if (!computer) {
@@ -938,13 +932,13 @@ void Darts::doCricketScoreHits(int player, int scoreIndex, int numHits) {
 	}
 }
 
-void Darts::updateCricketScore(int player, int dartHit, int multiplier) {
-	if (dartHit < 15)
+void Darts::updateCricketScore(int player, int dartVal, int multiplier) {
+	if (dartVal < 15)
 		return;
 
-	if (dartHit <= 20)
-		doCricketScoreHits(player, 20 - dartHit, multiplier);
-	else if (dartHit == 25)
+	if (dartVal <= 20)
+		doCricketScoreHits(player, 20 - dartVal, multiplier);
+	else if (dartVal == 25)
 		doCricketScoreHits(player, 6, multiplier);
 }
 
diff --git a/engines/sherlock/tattoo/tattoo_darts.h b/engines/sherlock/tattoo/tattoo_darts.h
index dbbb1f4..f65ec19 100644
--- a/engines/sherlock/tattoo/tattoo_darts.h
+++ b/engines/sherlock/tattoo/tattoo_darts.h
@@ -150,7 +150,7 @@ private:
 	/**
 	 * Updates the score based upon what the dart hit
 	 */
-	void updateCricketScore(int player, int dartHit, int multiplier);
+	void updateCricketScore(int player, int dartVal, int multiplier);
 
 	/**
 	 * Draw the darts left






More information about the Scummvm-git-logs mailing list