CRYOMNI3D: Remove unused variable

Thanks to eientei for reporting this
This commit is contained in:
Filippos Karapetis 2021-12-24 03:17:05 +02:00
parent a8745c9f35
commit aec7ece91e

View File

@ -245,7 +245,6 @@ bool FontManager::displayBlockText(const Common::U32String &text,
bool has_cr;
calculateWordWrap(text, &ptr, &finalPos, &has_cr, words);
uint spacesWidth = (words.size() - 1) * _spaceWidth;
uint remainingSpace = (_blockRect.right - finalPos);
uint spaceConsumed = 0;
double spaceWidthPerWord;
if (words.size() == 1) {
@ -263,7 +262,6 @@ bool FontManager::displayBlockText(const Common::U32String &text,
double sp = (word_i + 1) * spaceWidthPerWord - spaceConsumed;
_blockPos.x += int16(sp);
spaceConsumed += uint(sp);
remainingSpace -= uint(sp);
}
}
if (_blockPos.y + _lineHeight + getFontMaxHeight() >= _blockRect.bottom) {