diff options
| author | Max Horn | 2003-05-31 16:24:01 +0000 | 
|---|---|---|
| committer | Max Horn | 2003-05-31 16:24:01 +0000 | 
| commit | 33030f7bedc9aae06ca89bc35d6a535627f029e8 (patch) | |
| tree | e9dff4bd89c444ad97f002ec2e7210b8b8a08fa9 | |
| parent | 83e1815a726375ca44603feb20950a955d250cf2 (diff) | |
| download | scummvm-rg350-33030f7bedc9aae06ca89bc35d6a535627f029e8.tar.gz scummvm-rg350-33030f7bedc9aae06ca89bc35d6a535627f029e8.tar.bz2 scummvm-rg350-33030f7bedc9aae06ca89bc35d6a535627f029e8.zip | |
fix for part of bug #630570
svn-id: r8183
| -rw-r--r-- | scumm/script_v6.cpp | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index ce7056ceb8..c593823b2d 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -865,7 +865,7 @@ void Scumm_v6::o6_ifClassOfIs() {  	while (--num >= 0) {  		cls = args[num];  		b = getClass(obj, cls); -		if (cls & 0x80 && !b || !(cls & 0x80) && b) +		if ((cls & 0x80 && !b) || (!(cls & 0x80) && b))  			cond = 0;  	}  	push(cond); @@ -1653,8 +1653,11 @@ void Scumm_v6::o6_actorOps() {  		a->initActor(0);  		break;  	case 84:											/* actor-elevation */ -		a->elevation = pop(); -		a->needRedraw = true; +		k = pop(); +		if (k != a->elevation) { +			a->elevation = k; +			a->needRedraw = true; +		}  		break;  	case 85:											/* actor-defaultanims */  		a->initFrame = 1; | 
