[Scummvm-cvs-logs] scummvm master -> 4c56fe48790510f68a66b4e8777c9486ab82f587

dreammaster dreammaster at scummvm.org
Mon Jun 2 01:04:57 CEST 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4c56fe4879 MADS: Fix teleporters to correctly show code rather than room number


Commit: 4c56fe48790510f68a66b4e8777c9486ab82f587
    https://github.com/scummvm/scummvm/commit/4c56fe48790510f68a66b4e8777c9486ab82f587
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2014-06-01T19:04:19-04:00

Commit Message:
MADS: Fix teleporters to correctly show code rather than room number

Changed paths:
    engines/mads/nebular/nebular_scenes.cpp



diff --git a/engines/mads/nebular/nebular_scenes.cpp b/engines/mads/nebular/nebular_scenes.cpp
index 52b5650..c71512e 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);






More information about the Scummvm-git-logs mailing list