diff options
| author | Max Horn | 2003-08-05 16:51:40 +0000 | 
|---|---|---|
| committer | Max Horn | 2003-08-05 16:51:40 +0000 | 
| commit | 10508d4d2bfeff8baa9615596521a1c1a2c44d07 (patch) | |
| tree | 608fd415469877e41ca039348e7c625e5c9fb1b5 | |
| parent | 7cbb06c4a60aeb1bbfe0b593b13c3228160da71b (diff) | |
| download | scummvm-rg350-10508d4d2bfeff8baa9615596521a1c1a2c44d07.tar.gz scummvm-rg350-10508d4d2bfeff8baa9615596521a1c1a2c44d07.tar.bz2 scummvm-rg350-10508d4d2bfeff8baa9615596521a1c1a2c44d07.zip | |
fix warning / whitespace
svn-id: r9504
| -rw-r--r-- | scumm/script_v2.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index df3d359276..aafb347e1a 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -934,7 +934,7 @@ void Scumm_v2::o2_drawSentence() {  	static char sentence[256];  	const byte *temp;  	int slot = getVerbSlot(VAR(VAR_SENTENCE_VERB),0); -	printf("slot is %d\n"); +  	if (!(_userState & 32))  		return; @@ -951,16 +951,16 @@ void Scumm_v2::o2_drawSentence() {  		}  		if ((_version == 1) && (VAR(VAR_SENTENCE_PREPOSITION) == 0)) { -        	        byte *ptr = getOBCDFromObject(VAR(VAR_SENTENCE_OBJECT1)) + 12; +			byte *ptr = getOBCDFromObject(VAR(VAR_SENTENCE_OBJECT1)) + 12;  			VerbSlot *vs = &_verbs[slot]; - +	  			if (ptr) {  				if (vs->prep == 0)  					VAR(VAR_SENTENCE_PREPOSITION) = (*ptr >> 5);  				else  					VAR(VAR_SENTENCE_PREPOSITION) = vs->prep;  			} -        	} +		}  	}  	if (0 < VAR(VAR_SENTENCE_PREPOSITION) && VAR(VAR_SENTENCE_PREPOSITION) <= 4) { | 
