diff options
| author | Paul Gilbert | 2008-12-14 04:24:41 +0000 | 
|---|---|---|
| committer | Paul Gilbert | 2008-12-14 04:24:41 +0000 | 
| commit | 4d79c4c9b65f89be91867fe5b33a40051b365216 (patch) | |
| tree | 43c8a28b8cefaf2efc24340cdba0e3e527952793 | |
| parent | 8770cef478eab747d6f08de4a4f2dc1344c31f4c (diff) | |
| download | scummvm-rg350-4d79c4c9b65f89be91867fe5b33a40051b365216.tar.gz scummvm-rg350-4d79c4c9b65f89be91867fe5b33a40051b365216.tar.bz2 scummvm-rg350-4d79c4c9b65f89be91867fe5b33a40051b365216.zip | |
Minor bugfix to string display in DW1 demo
svn-id: r35354
| -rw-r--r-- | engines/tinsel/strres.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/engines/tinsel/strres.cpp b/engines/tinsel/strres.cpp index 979b05fb8d..ad28c48334 100644 --- a/engines/tinsel/strres.cpp +++ b/engines/tinsel/strres.cpp @@ -141,6 +141,10 @@ static byte *FindStringBase(int id) {  	// base of string resource table  	byte *pText = textBuffer; +	// For Tinsel 0, Ids are decremented by 1 +	if (TinselV0) +		--id; +  	// index into text resource file  	uint32 index = 0; @@ -170,10 +174,6 @@ static byte *FindStringBase(int id) {  	// pointer to strings  	pText = pText + index; -	// For Tinsel 0 Ids, reduce the skip amount by 1 -	if (TinselV0 && (strSkip != 0)) -		--strSkip; -  	// skip to the correct string  	while (strSkip-- != 0) {  		// skip to next string | 
