[Scummvm-cvs-logs] scummvm master -> 6cd17ca9dd3b94da81869c147e82c496243204b1
eriktorbjorn
eriktorbjorn at telia.com
Thu Jun 18 05:33:32 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:
6cd17ca9dd SHERLOCK: Fix a couple of GCC warnings
Commit: 6cd17ca9dd3b94da81869c147e82c496243204b1
https://github.com/scummvm/scummvm/commit/6cd17ca9dd3b94da81869c147e82c496243204b1
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2015-06-18T05:31:49+02:00
Commit Message:
SHERLOCK: Fix a couple of GCC warnings
Changed paths:
engines/sherlock/tattoo/tattoo_talk.cpp
engines/sherlock/tattoo/tattoo_user_interface.cpp
diff --git a/engines/sherlock/tattoo/tattoo_talk.cpp b/engines/sherlock/tattoo/tattoo_talk.cpp
index ef00c3c..2da3005 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 258383d..29a5704 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;
More information about the Scummvm-git-logs
mailing list