From 4c56fe48790510f68a66b4e8777c9486ab82f587 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 1 Jun 2014 19:04:19 -0400 Subject: MADS: Fix teleporters to correctly show code rather than room number --- engines/mads/nebular/nebular_scenes.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/mads/nebular') 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); -- cgit v1.2.3