Skip to content

Commit

Permalink
TSAGE: Improved comments about uninitialised variable in original code
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Nov 1, 2013
1 parent 75785ec commit 217164c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions engines/tsage/ringworld2/ringworld2_scenes1.cpp
Expand Up @@ -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:
Expand Down

0 comments on commit 217164c

Please sign in to comment.