diff options
| author | Paul Gilbert | 2015-08-30 10:01:25 -0400 | 
|---|---|---|
| committer | Paul Gilbert | 2015-08-30 10:01:25 -0400 | 
| commit | 944cf4c64fd978db9b49a4317a955dc681b51089 (patch) | |
| tree | 59553636a57b96751896fd8c8eb0ae1c711079f2 | |
| parent | 3430757bf44fa53ef12f5dd10f80a5fea83cc39c (diff) | |
| download | scummvm-rg350-944cf4c64fd978db9b49a4317a955dc681b51089.tar.gz scummvm-rg350-944cf4c64fd978db9b49a4317a955dc681b51089.tar.bz2 scummvm-rg350-944cf4c64fd978db9b49a4317a955dc681b51089.zip  | |
SHERLOCK: Syntax fixes
| -rw-r--r-- | engines/sherlock/scalpel/scalpel_people.cpp | 3 | ||||
| -rw-r--r-- | engines/sherlock/scalpel/scalpel_scene.cpp | 3 | ||||
| -rw-r--r-- | engines/sherlock/scalpel/scalpel_talk.cpp | 15 | ||||
| -rw-r--r-- | engines/sherlock/talk.cpp | 1 | ||||
| -rw-r--r-- | engines/sherlock/tattoo/tattoo_people.cpp | 3 | 
5 files changed, 8 insertions, 17 deletions
diff --git a/engines/sherlock/scalpel/scalpel_people.cpp b/engines/sherlock/scalpel/scalpel_people.cpp index 57cf9f9d38..924095cd50 100644 --- a/engines/sherlock/scalpel/scalpel_people.cpp +++ b/engines/sherlock/scalpel/scalpel_people.cpp @@ -469,8 +469,7 @@ void ScalpelPeople::setTalkSequence(int speaker, int sequenceNum) {  			if (obj._seqSize < MAX_TALK_SEQUENCES) {  				warning("Tried to copy too many talk frames"); -			} -			else { +			} else {  				for (int idx = 0; idx < MAX_TALK_SEQUENCES; ++idx) {  					obj._sequences[idx] = people._characters[speaker]._talkSequences[idx];  					if (idx > 0 && !obj._sequences[idx] && !obj._sequences[idx - 1]) diff --git a/engines/sherlock/scalpel/scalpel_scene.cpp b/engines/sherlock/scalpel/scalpel_scene.cpp index 999393fdcb..b2c7339363 100644 --- a/engines/sherlock/scalpel/scalpel_scene.cpp +++ b/engines/sherlock/scalpel/scalpel_scene.cpp @@ -732,8 +732,7 @@ int ScalpelScene::findBgShape(const Common::Point &pt) {  			&& o._aType <= PERSON) {  			if (o.getNewBounds().contains(pt))  				return idx; -		} -		else if (o._type == NO_SHAPE) { +		} else if (o._type == NO_SHAPE) {  			if (o.getNoShapeBounds().contains(pt))  				return idx;  		} diff --git a/engines/sherlock/scalpel/scalpel_talk.cpp b/engines/sherlock/scalpel/scalpel_talk.cpp index 69d14211fd..2dda817445 100644 --- a/engines/sherlock/scalpel/scalpel_talk.cpp +++ b/engines/sherlock/scalpel/scalpel_talk.cpp @@ -211,8 +211,7 @@ void ScalpelTalk::talkInterface(const byte *&str) {  		if (ui._windowOpen) {  			screen.print(Common::Point(16, _yp), TALK_FOREGROUND, "%s",  				people._characters[_speaker & 127]._name); -		} -		else { +		} else {  			screen.gPrint(Common::Point(16, _yp - 1), TALK_FOREGROUND, "%s",  				people._characters[_speaker & 127]._name);  			_openTalkWindow = true; @@ -234,8 +233,7 @@ void ScalpelTalk::talkInterface(const byte *&str) {  			--idx;  			--_charCount;  		} -	} -	else { +	} else {  		_endStr = true;  	} @@ -254,17 +252,14 @@ void ScalpelTalk::talkInterface(const byte *&str) {  	if (_speaker != -1) {  		if (ui._windowOpen) {  			screen.print(Common::Point(16, _yp), COMMAND_FOREGROUND, "%s", lineStr.c_str()); -		} -		else { +		} else {  			screen.gPrint(Common::Point(16, _yp - 1), COMMAND_FOREGROUND, "%s", lineStr.c_str());  			_openTalkWindow = true;  		} -	} -	else { +	} else {  		if (ui._windowOpen) {  			screen.print(Common::Point(16, _yp), COMMAND_FOREGROUND, "%s", lineStr.c_str()); -		} -		else { +		} else {  			screen.gPrint(Common::Point(16, _yp - 1), COMMAND_FOREGROUND, "%s", lineStr.c_str());  			_openTalkWindow = true;  		} diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp index 26550a7a8e..fa00b9d715 100644 --- a/engines/sherlock/talk.cpp +++ b/engines/sherlock/talk.cpp @@ -399,7 +399,6 @@ void Talk::talkTo(const Common::String filename) {  					if (_talkTo != -1 && !_talkHistory[_converseNum][select])  						journal.record(_converseNum, select, true);  					_talkHistory[_converseNum][select] = true; -  				}  				ui._key = ui._oldKey = Scalpel::COMMANDS[TALK_MODE - 1]; diff --git a/engines/sherlock/tattoo/tattoo_people.cpp b/engines/sherlock/tattoo/tattoo_people.cpp index ac4366261f..e3e957e35c 100644 --- a/engines/sherlock/tattoo/tattoo_people.cpp +++ b/engines/sherlock/tattoo/tattoo_people.cpp @@ -1283,8 +1283,7 @@ void TattooPeople::setTalkSequence(int speaker, int sequenceNum) {  		if (obj.hasAborts()) {  			talk.pushSequenceEntry(&obj);  			obj._gotoSeq = sequenceNum; -		} -		else { +		} else {  			obj.setObjTalkSequence(sequenceNum);  		}  	} else if (objNum != -1) {  | 
