diff options
| -rw-r--r-- | engines/agos/string.cpp | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/agos/string.cpp b/engines/agos/string.cpp index f9a06cbecb..410fd5a1ce 100644 --- a/engines/agos/string.cpp +++ b/engines/agos/string.cpp @@ -517,8 +517,7 @@ void AGOSEngine::printScreenText(uint vgaSpriteId, uint color, const char *strin  			y -= textHeight;  		} else  			pos = stringLength; -		padding = (lettersPerRow - pos) % 2 ? -			(lettersPerRow - pos) / 2 + 1 : (lettersPerRow - pos) / 2; +		padding = ((lettersPerRow - pos) % 2) ? (lettersPerRow - pos) / 2 + 1 : (lettersPerRow - pos) / 2;  		while (padding--)  			*convertedString2++ = ' ';  		stringLength -= pos;  | 
