From 680790acaa8dca81e66e21da58d91054f983e8ec Mon Sep 17 00:00:00 2001 From: Borja Lorente Date: Tue, 28 Jun 2016 21:03:24 +0200 Subject: [PATCH] MACVENTURE: Add proper capitalization --- engines/macventure/text.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engines/macventure/text.cpp b/engines/macventure/text.cpp index d3fc956b935..cf7402822d4 100644 --- a/engines/macventure/text.cpp +++ b/engines/macventure/text.cpp @@ -203,8 +203,12 @@ Common::String TextAsset::getNoun(ObjID subval) { break; } } - if (name.size() && (subval & 4)) - name.toUppercase(); // HACK, should only capitalize first char? + if (name.size() && (subval & 4)) { + Common::String tmp = name; + name.toUppercase(); + name.replace(1, name.size() - 1, tmp, 1, tmp.size() - 1); + } + return name; }