[Scummvm-cvs-logs] scummvm master -> cc165def58a570f2f57975e22150a34013f50b29

dreammaster dreammaster at scummvm.org
Sat May 30 19:05:27 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:
cc165def58 SHERLOCK: Further compilation fixes


Commit: cc165def58a570f2f57975e22150a34013f50b29
    https://github.com/scummvm/scummvm/commit/cc165def58a570f2f57975e22150a34013f50b29
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-05-30T13:04:22-04:00

Commit Message:
SHERLOCK: Further compilation fixes

Changed paths:
    engines/sherlock/scalpel/drivers/adlib.cpp
    engines/sherlock/scalpel/scalpel_user_interface.h
    engines/sherlock/tattoo/tattoo_scene.cpp



diff --git a/engines/sherlock/scalpel/drivers/adlib.cpp b/engines/sherlock/scalpel/drivers/adlib.cpp
index 5786a33..2a56d6a 100644
--- a/engines/sherlock/scalpel/drivers/adlib.cpp
+++ b/engines/sherlock/scalpel/drivers/adlib.cpp
@@ -405,7 +405,7 @@ void MidiDriver_AdLib::send(uint32 b) {
 		pitchBendChange(channel, op1, op2);
 		break;
 	case 0xf0: // SysEx
-		warning("SysEx: %lx", b);
+		warning("SysEx: %x", b);
 		break;
 	default:
 		warning("ADLIB: Unknown event %02x", command);
diff --git a/engines/sherlock/scalpel/scalpel_user_interface.h b/engines/sherlock/scalpel/scalpel_user_interface.h
index dbc3945..552bcf0 100644
--- a/engines/sherlock/scalpel/scalpel_user_interface.h
+++ b/engines/sherlock/scalpel/scalpel_user_interface.h
@@ -80,12 +80,6 @@ private:
 	void toggleButton(int num);
 
 	/**
-	 * Creates a text window and uses it to display the in-depth description
-	 * of the highlighted object
-	 */
-	void examine();
-
-	/**
 	 * Print the name of an object in the scene
 	 */
 	void lookScreen(const Common::Point &pt);
@@ -172,6 +166,12 @@ public:
 	 * (not selected) position
 	 */
 	void restoreButton(int num);
+
+	/**
+	 * Creates a text window and uses it to display the in-depth description
+	 * of the highlighted object
+	 */
+	void examine();
 public:
 	/**
 	 * Resets the user interface
diff --git a/engines/sherlock/tattoo/tattoo_scene.cpp b/engines/sherlock/tattoo/tattoo_scene.cpp
index 66a66ba..2a13b2a 100644
--- a/engines/sherlock/tattoo/tattoo_scene.cpp
+++ b/engines/sherlock/tattoo/tattoo_scene.cpp
@@ -229,7 +229,6 @@ void TattooScene::doBgAnim() {
 }
 
 void TattooScene::doBgAnimUpdateBgObjectsAndAnim() {
-	TattooEngine &vm = *((TattooEngine *)_vm);
 	People &people = *_vm->_people;
 	Screen &screen = *_vm->_screen;
 
@@ -244,7 +243,7 @@ void TattooScene::doBgAnimUpdateBgObjectsAndAnim() {
 			people[idx].adjustSprite();
 	}
 
-	if (_activeCAnim._images != nullptr && _activeCAnim._zPlacement != REMOVE) {
+	if ((_activeCAnim._images != nullptr) && (_activeCAnim._zPlacement != REMOVE)) {
 		_activeCAnim.getNextFrame();
 	}
 






More information about the Scummvm-git-logs mailing list