aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2015-05-30 13:04:22 -0400
committerPaul Gilbert2015-05-30 13:04:22 -0400
commit1f7555c2ca753c4b68c3a53c651dead981e7b81d (patch)
tree52a64e20a771595c30e133673dae45dd69743020
parent442fb847683aa789ae75dcf990040a13691293b6 (diff)
downloadscummvm-rg350-1f7555c2ca753c4b68c3a53c651dead981e7b81d.tar.gz
scummvm-rg350-1f7555c2ca753c4b68c3a53c651dead981e7b81d.tar.bz2
scummvm-rg350-1f7555c2ca753c4b68c3a53c651dead981e7b81d.zip
SHERLOCK: Further compilation fixes
-rw-r--r--engines/sherlock/scalpel/drivers/adlib.cpp2
-rw-r--r--engines/sherlock/scalpel/scalpel_user_interface.h12
-rw-r--r--engines/sherlock/tattoo/tattoo_scene.cpp3
3 files changed, 8 insertions, 9 deletions
diff --git a/engines/sherlock/scalpel/drivers/adlib.cpp b/engines/sherlock/scalpel/drivers/adlib.cpp
index 5786a33234..2a56d6a264 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 dbc3945582..552bcf00c5 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 66a66bad74..2a13b2a450 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();
}