diff options
author | Borja Lorente | 2016-06-28 21:03:24 +0200 |
---|---|---|
committer | Borja Lorente | 2016-08-14 18:41:15 +0200 |
commit | 680790acaa8dca81e66e21da58d91054f983e8ec (patch) | |
tree | d92a9c64baf15e74584a7014f7c5e40aca9e404d /engines | |
parent | 0485483254e9ce94acfd4750122a466984227904 (diff) | |
download | scummvm-rg350-680790acaa8dca81e66e21da58d91054f983e8ec.tar.gz scummvm-rg350-680790acaa8dca81e66e21da58d91054f983e8ec.tar.bz2 scummvm-rg350-680790acaa8dca81e66e21da58d91054f983e8ec.zip |
MACVENTURE: Add proper capitalization
Diffstat (limited to 'engines')
-rw-r--r-- | engines/macventure/text.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/macventure/text.cpp b/engines/macventure/text.cpp index d3fc956b93..cf7402822d 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; } |