From 003269dc36288a99d15c65f44d2181ad08dc6181 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 16 Dec 2014 11:08:40 +0200 Subject: 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 --- engines/zvision/text/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/zvision/text') diff --git a/engines/zvision/text/text.cpp b/engines/zvision/text/text.cpp index 0ccca214d7..406c36e5b0 100644 --- a/engines/zvision/text/text.cpp +++ b/engines/zvision/text/text.cpp @@ -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(); } -- cgit v1.2.3