diff options
| -rw-r--r-- | NEWS | 1 | ||||
| -rw-r--r-- | engines/simon/string.cpp | 6 | 
2 files changed, 3 insertions, 4 deletions
| @@ -30,6 +30,7 @@ For a more comprehensive changelog for the latest experimental SVN code, see:   Simon     - Improved support for international versions of the Feeble Files.     - Fixed undefined behaviour when loading music. +   - Fixed crash when displaying some subtitles in the Feeble Files.   Broken Sword 2     - More robust handling of the optional startup.inf file. diff --git a/engines/simon/string.cpp b/engines/simon/string.cpp index 447f258781..6975ea53d3 100644 --- a/engines/simon/string.cpp +++ b/engines/simon/string.cpp @@ -365,16 +365,15 @@ void SimonEngine::printScreenText(uint vgaSpriteId, uint color, const char *stri  	if (getGameType() == GType_FF) {  		uint16 b, pixels, spaces; -		uint16 curWdth = width;  		while (1) { -			string2 = getPixelLength(string, curWdth, pixels); +			string2 = getPixelLength(string, width, pixels);  			if (*string2 == 0) {  				spaces = (width - pixels) / 12;  				if (spaces != 0)  					spaces--;  				while (spaces) { -	    				*convertedString2++=' '; +	    				*convertedString2++ = ' ';  	    				spaces--;  				}  				strcpy(convertedString2, string); @@ -400,7 +399,6 @@ void SimonEngine::printScreenText(uint vgaSpriteId, uint color, const char *stri  			y -= textHeight;  			if (y < 2)  			    y = 2; -			curWdth = pixels;  			string = string2;  		}  	} else { | 
