aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2015-06-18 05:31:49 +0200
committerTorbjörn Andersson2015-06-18 05:31:49 +0200
commit6cd17ca9dd3b94da81869c147e82c496243204b1 (patch)
treebfbf3ae9793a5ed50b8595f5dfbab8843c9d86f7 /engines
parentc28cdf87bc4a819f5be35cc39133beb29fbca22b (diff)
downloadscummvm-rg350-6cd17ca9dd3b94da81869c147e82c496243204b1.tar.gz
scummvm-rg350-6cd17ca9dd3b94da81869c147e82c496243204b1.tar.bz2
scummvm-rg350-6cd17ca9dd3b94da81869c147e82c496243204b1.zip
SHERLOCK: Fix a couple of GCC warnings
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/tattoo/tattoo_talk.cpp24
-rw-r--r--engines/sherlock/tattoo/tattoo_user_interface.cpp1
2 files changed, 16 insertions, 9 deletions
diff --git a/engines/sherlock/tattoo/tattoo_talk.cpp b/engines/sherlock/tattoo/tattoo_talk.cpp
index ef00c3c35a..2da30057c7 100644
--- a/engines/sherlock/tattoo/tattoo_talk.cpp
+++ b/engines/sherlock/tattoo/tattoo_talk.cpp
@@ -308,7 +308,8 @@ OpcodeReturn TattooTalk::cmdNPCLabelGoto(const byte *&str) {
TattooPerson &person = people[npcNum];
if (person._resetNPCPath) {
- person._npcIndex = person._resetNPCPath = person._npcPause = 0;
+ person._npcIndex = person._npcPause = 0;
+ person._resetNPCPath = false;
memset(person._npcPath, 0, 100);
}
@@ -326,7 +327,8 @@ OpcodeReturn TattooTalk::cmdNPCLabelIfFlagGoto(const byte *&str) {
TattooPerson &person = people[npcNum];
if (person._resetNPCPath) {
- person._npcIndex = person._resetNPCPath = person._npcPause = 0;
+ person._npcIndex = person._npcPause = 0;
+ person._resetNPCPath = false;
memset(person._npcPath, 0, 100);
}
@@ -346,7 +348,8 @@ OpcodeReturn TattooTalk::cmdNPCLabelSet(const byte *&str) {
TattooPerson &person = people[npcNum];
if (person._resetNPCPath) {
- person._npcIndex = person._resetNPCPath = person._npcPause = 0;
+ person._npcIndex = person._npcPause = 0;
+ person._resetNPCPath = false;
memset(person._npcPath, 0, 100);
}
@@ -439,7 +442,8 @@ OpcodeReturn TattooTalk::cmdSetNPCPathDest(const byte *&str) {
TattooPerson &person = people[npcNum];
if (person._resetNPCPath) {
- person._npcIndex = person._resetNPCPath = person._npcPause = 0;
+ person._npcIndex = person._npcPause = 0;
+ person._resetNPCPath = false;
memset(person._npcPath, 0, 100);
}
@@ -460,7 +464,8 @@ OpcodeReturn TattooTalk::cmdSetNPCPathPause(const byte *&str) {
TattooPerson &person = people[npcNum];
if (person._resetNPCPath) {
- person._npcIndex = person._resetNPCPath = person._npcPause = 0;
+ person._npcIndex = person._npcPause = 0;
+ person._resetNPCPath = false;
memset(person._npcPath, 0, 100);
}
@@ -480,7 +485,8 @@ OpcodeReturn TattooTalk::cmdSetNPCPathPauseTakingNotes(const byte *&str) {
TattooPerson &person = people[npcNum];
if (person._resetNPCPath) {
- person._npcIndex = person._resetNPCPath = person._npcPause = 0;
+ person._npcIndex = person._npcPause = 0;
+ person._resetNPCPath = false;
memset(person._npcPath, 0, 100);
}
@@ -500,7 +506,8 @@ OpcodeReturn TattooTalk::cmdSetNPCPathPauseLookingHolmes(const byte *&str) {
TattooPerson &person = people[npcNum];
if (person._resetNPCPath) {
- person._npcIndex = person._resetNPCPath = person._npcPause = 0;
+ person._npcIndex = person._npcPause = 0;
+ person._resetNPCPath = false;
memset(person._npcPath, 0, 100);
}
@@ -562,7 +569,8 @@ OpcodeReturn TattooTalk::cmdSetNPCTalkFile(const byte *&str) {
TattooPerson &person = people[npcNum];
if (person._resetNPCPath) {
- person._npcIndex = person._resetNPCPath = person._npcPause = 0;
+ person._npcIndex = person._npcPause = 0;
+ person._resetNPCPath = false;
memset(person._npcPath, 0, 100);
}
diff --git a/engines/sherlock/tattoo/tattoo_user_interface.cpp b/engines/sherlock/tattoo/tattoo_user_interface.cpp
index 258383d444..29a570478b 100644
--- a/engines/sherlock/tattoo/tattoo_user_interface.cpp
+++ b/engines/sherlock/tattoo/tattoo_user_interface.cpp
@@ -54,7 +54,6 @@ void TattooUserInterface::initScrollVars() {
}
void TattooUserInterface::lookAtObject() {
- Events &events = *_vm->_events;
People &people = *_vm->_people;
Scene &scene = *_vm->_scene;
Sound &sound = *_vm->_sound;