mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
ZVISION: Fix the display of state variables, such as the high score
Common::String::format() was used incorrectly. Also, state variables were handled incorrectly in the TTY text parser
This commit is contained in:
parent
1241efcbca
commit
003269dc36
@ -96,7 +96,7 @@ bool ttyTextNode::process(uint32 deltaTimeInMillis) {
|
||||
|
||||
if (ret & TXT_RET_HASSTBOX) {
|
||||
Common::String buf;
|
||||
buf.format("%d", _style.statebox);
|
||||
buf = Common::String::format("%d", _engine->getScriptManager()->getStateValue(_style.statebox));
|
||||
|
||||
for (uint8 j = 0; j < buf.size(); j++)
|
||||
outchar(buf[j]);
|
||||
|
@ -396,7 +396,7 @@ void TextRenderer::drawTxtInOneLine(const Common::String &text, Graphics::Surfac
|
||||
|
||||
if (ret & TXT_RET_HASSTBOX) {
|
||||
Common::String buf3;
|
||||
buf3.format("%d", _engine->getScriptManager()->getStateValue(style.statebox));
|
||||
buf3 = Common::String::format("%d", _engine->getScriptManager()->getStateValue(style.statebox));
|
||||
buf += buf3;
|
||||
textPosition += buf3.size();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user