mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
AGOS: Fix operator precedence warning
This commit is contained in:
parent
1cc7faa242
commit
a8b13e8a6b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user