Skip to content

Commit

Permalink
TSAGE: #if 0 out the uninitialised variable switch block
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Nov 1, 2013
1 parent 0e11cab commit 6fa1b6f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions engines/tsage/ringworld2/ringworld2_scenes1.cpp
Expand Up @@ -8268,9 +8268,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;

// 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
// NOTE: Original game contains a switch based on an uninitialized variable.
// We're leaving this code here, but ifdef'ed out, in case we can ever figure out
// what the original programmers intended the value to come from
#if 0
int missingVariable = 0;
switch (missingVariable) {
case 144:
Expand All @@ -8292,6 +8293,7 @@ void Scene1550::dispatch() {
default:
break;
}
#endif
}

if (_field412 != 0)
Expand Down

0 comments on commit 6fa1b6f

Please sign in to comment.