aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision
diff options
context:
space:
mode:
authorFilippos Karapetis2014-12-16 11:08:40 +0200
committerFilippos Karapetis2014-12-16 11:08:40 +0200
commit003269dc36288a99d15c65f44d2181ad08dc6181 (patch)
tree34eb9e53a20007334c9244446c6eada59232d6b7 /engines/zvision
parent1241efcbcae7ea053067b2a80dcd93e88b4d0cea (diff)
downloadscummvm-rg350-003269dc36288a99d15c65f44d2181ad08dc6181.tar.gz
scummvm-rg350-003269dc36288a99d15c65f44d2181ad08dc6181.tar.bz2
scummvm-rg350-003269dc36288a99d15c65f44d2181ad08dc6181.zip
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
Diffstat (limited to 'engines/zvision')
-rw-r--r--engines/zvision/scripting/sidefx/ttytext_node.cpp2
-rw-r--r--engines/zvision/text/text.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/scripting/sidefx/ttytext_node.cpp b/engines/zvision/scripting/sidefx/ttytext_node.cpp
index 1fb7c10792..9a7fa01649 100644
--- a/engines/zvision/scripting/sidefx/ttytext_node.cpp
+++ b/engines/zvision/scripting/sidefx/ttytext_node.cpp
@@ -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]);
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();
}