diff options
| -rw-r--r-- | engines/prince/script.cpp | 20 | 
1 files changed, 4 insertions, 16 deletions
diff --git a/engines/prince/script.cpp b/engines/prince/script.cpp index 4c9c28f1b3..7322752e6d 100644 --- a/engines/prince/script.cpp +++ b/engines/prince/script.cpp @@ -1375,29 +1375,17 @@ void Interpreter::O_SUBSTRING() {  int Interpreter::checkSeq(byte *string) {  	int freeHSlotIncrease = 0;  	byte c; -	while (1) { -		c = string[0]; +	while ((c = string[0]) != 0xFF) {  		string++;  		if (c < 0xF0) { -			//not_spec  			freeHSlotIncrease++; -			while (1) { -				c = string[0]; -				if (c == 0) { -					break; -				} +			while ((c = string[0])) {  				string++;  			}  			string++; -			continue; -		} -		if (c == 0xFF) { -			break; -		} -		if (c == 0xFE) { -			continue; // pause +		} else if (c != 0xFE) { +			string++;  		} -		string++;  	}  	return freeHSlotIncrease;  }  | 
