diff options
| -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; | 
