diff options
author | Filippos Karapetis | 2014-05-06 03:38:21 +0300 |
---|---|---|
committer | Filippos Karapetis | 2014-05-06 03:38:21 +0300 |
commit | 2ff16fbc49c0bc44ab06b3a25d7739bf0b394a86 (patch) | |
tree | dcbf762dbf44f1e98558946c401903f2c3234bf6 | |
parent | 417536d01c4eb0a1b99fb96a49f83c2f45a59c27 (diff) | |
download | scummvm-rg350-2ff16fbc49c0bc44ab06b3a25d7739bf0b394a86.tar.gz scummvm-rg350-2ff16fbc49c0bc44ab06b3a25d7739bf0b394a86.tar.bz2 scummvm-rg350-2ff16fbc49c0bc44ab06b3a25d7739bf0b394a86.zip |
MADS: Restore accidentally reverted code
-rw-r--r-- | engines/mads/nebular/nebular_scenes.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/mads/nebular/nebular_scenes.cpp b/engines/mads/nebular/nebular_scenes.cpp index 06b0f3b7b9..970acb057a 100644 --- a/engines/mads/nebular/nebular_scenes.cpp +++ b/engines/mads/nebular/nebular_scenes.cpp @@ -438,8 +438,7 @@ void SceneTeleporter::teleporterHandleKey() { _curCode *= 10; _curCode += _buttonTyped; _digitCount++; - _msgText = ""; - _msgText.format("%d", _curCode); + _msgText = Common::String::format("%d", _curCode); if (_digitCount < 4) _msgText += "_"; @@ -545,7 +544,7 @@ void SceneTeleporter::teleporterEnter() { _meteorologistNextPlace = _globals[kTeleporterCode + i]; } - Common::String msgText2 = Common::String::format("#%d", tmpVal); + Common::String msgText2 = Common::String::format("#%.4d", tmpVal); if (_scene->_currentSceneId != 711) { _scene->_kernelMessages.add(Common::Point(133, 34), 0, 32, 0, 9999999, msgText2); |