aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/ringworld2/ringworld2_scenes1.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2013-10-31 20:09:13 -0400
committerPaul Gilbert2013-10-31 20:09:13 -0400
commit217164c6c9b17e46f38e02acdc2450caf7fcc21a (patch)
tree2639da0881d352cece03848b577d0883a1592f6a /engines/tsage/ringworld2/ringworld2_scenes1.cpp
parent75785ec3a17d530e83ed14ed5cc033bdb7cdd371 (diff)
downloadscummvm-rg350-217164c6c9b17e46f38e02acdc2450caf7fcc21a.tar.gz
scummvm-rg350-217164c6c9b17e46f38e02acdc2450caf7fcc21a.tar.bz2
scummvm-rg350-217164c6c9b17e46f38e02acdc2450caf7fcc21a.zip
TSAGE: Improved comments about uninitialised variable in original code
Diffstat (limited to 'engines/tsage/ringworld2/ringworld2_scenes1.cpp')
-rw-r--r--engines/tsage/ringworld2/ringworld2_scenes1.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/tsage/ringworld2/ringworld2_scenes1.cpp b/engines/tsage/ringworld2/ringworld2_scenes1.cpp
index 453d120c0e..7c9c5412e1 100644
--- a/engines/tsage/ringworld2/ringworld2_scenes1.cpp
+++ b/engines/tsage/ringworld2/ringworld2_scenes1.cpp
@@ -8267,8 +8267,10 @@ void Scene1550::dispatch() {
if ((R2_GLOBALS._s1550PlayerArea[R2_GLOBALS._player._characterIndex].x == 15) && (R2_GLOBALS._s1550PlayerArea[R2_GLOBALS._player._characterIndex].y == 16)) {
R2_GLOBALS._player._shade = 0;
- // Original game contains a switch based on an uninitialized variable.
- // Until we understand what should really happen there, this code is unused on purpose
+
+ // WORKAROUND: Original game contains a switch based on an uninitialized variable.
+ // The switch is being left in place, but with a fixed switch value of zero, in case
+ // we can ever figure out what the original programmers intended the value to come from
int missingVariable = 0;
switch (missingVariable) {
case 144: