diff options
author | Paul Gilbert | 2014-06-01 19:04:19 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-06-01 19:04:19 -0400 |
commit | 4c56fe48790510f68a66b4e8777c9486ab82f587 (patch) | |
tree | 6821d86876ca517936e13a474f7aacc47b4b0490 | |
parent | 4c716539ad2a9cf361b076a9b811aa24f7b874cb (diff) | |
download | scummvm-rg350-4c56fe48790510f68a66b4e8777c9486ab82f587.tar.gz scummvm-rg350-4c56fe48790510f68a66b4e8777c9486ab82f587.tar.bz2 scummvm-rg350-4c56fe48790510f68a66b4e8777c9486ab82f587.zip |
MADS: Fix teleporters to correctly show code rather than room number
-rw-r--r-- | engines/mads/nebular/nebular_scenes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mads/nebular/nebular_scenes.cpp b/engines/mads/nebular/nebular_scenes.cpp index 52b565016f..c71512ed4c 100644 --- a/engines/mads/nebular/nebular_scenes.cpp +++ b/engines/mads/nebular/nebular_scenes.cpp @@ -548,16 +548,16 @@ void SceneTeleporter::teleporterEnter() { if (_teleporterSceneId == 202) _teleporterSceneId = 201; - int tmpVal = 0; + int codeVal = 0; for (int i = 0; i < 10; i++) { if (_teleporterSceneId == _globals[kTeleporterRoom + i]) - tmpVal = _globals[kTeleporterRoom + i]; + codeVal = _globals[kTeleporterCode + i]; if (_globals[kTeleporterRoom + i] == 301) _meteorologistNextPlace = _globals[kTeleporterCode + i]; } - Common::String msgText2 = Common::String::format("#%.4d", tmpVal); + Common::String msgText2 = Common::String::format("#%.4d", codeVal); if (_scene->_currentSceneId != 711) { _scene->_kernelMessages.add(Common::Point(133, 34), 0, 32, 0, 9999999, msgText2); |