diff options
author | Paul Gilbert | 2015-03-01 18:21:39 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-03-01 18:21:39 -0500 |
commit | e664e9167a599e1e8ac7d8bb8f5349547fb49832 (patch) | |
tree | 772e03f0ac701cdd2ccea3307cb221f37be2ac3b /engines | |
parent | 2fa47e2efdf9aa6729bf5cc807b735fe0d61b745 (diff) | |
download | scummvm-rg350-e664e9167a599e1e8ac7d8bb8f5349547fb49832.tar.gz scummvm-rg350-e664e9167a599e1e8ac7d8bb8f5349547fb49832.tar.bz2 scummvm-rg350-e664e9167a599e1e8ac7d8bb8f5349547fb49832.zip |
MADS: Fix display of teleporter values with leading zeroes
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/nebular/nebular_scenes.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/mads/nebular/nebular_scenes.cpp b/engines/mads/nebular/nebular_scenes.cpp index b5e2491624..0019118593 100644 --- a/engines/mads/nebular/nebular_scenes.cpp +++ b/engines/mads/nebular/nebular_scenes.cpp @@ -451,7 +451,10 @@ void SceneTeleporter::teleporterHandleKey() { _curCode *= 10; _curCode += _buttonTyped; _digitCount++; - _msgText = Common::String::format("%d", _curCode); + + Common::String format = "%01d"; + format.setChar('0' + _digitCount, 2); + _msgText = Common::String::format(format.c_str(), _curCode); if (_digitCount < 4) _msgText += "_"; |