Skip to content

Commit

Permalink
Merge pull request #197 from FedericoMilesi/DEBUG_FogLoad
Browse files Browse the repository at this point in the history
[DEBUG]: Implement DEBUG_FogLoad
  • Loading branch information
Gh0stBlade authored Nov 14, 2023
2 parents de64828 + 626d1b1 commit 97ac818
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions KAIN2/Game/DEBUG.C
Original file line number Diff line number Diff line change
Expand Up @@ -1932,9 +1932,27 @@ void DEBUG_FillUpHealth(long* var)
RAZIEL_DebugManaFillUp();
}

void DEBUG_FogLoad(void)
void DEBUG_FogLoad() // Matching - 97.88%
{
UNIMPLEMENTED();
int temp, temp2, temp3, temp4, temp5; // not in SYMDUMP
struct _StreamUnit* currentUnit;

currentUnit = FindStreamUnitFromLevel(gameTrackerX.level);
temp = currentUnit->TargetFogFar;
debugFogFar = temp;
debugOrgFogFar = temp;
temp2 = currentUnit->TargetFogNear;
debugFogNear = temp2;
debugOrgFogNear = temp2;
temp3 = (currentUnit->FogColor >> 16) & 0xFF;
debugFogRed = temp3;
debugOrgFogRed = temp3;
temp4 = (currentUnit->FogColor >> 8) & 0xFF;
debugFogGrn = temp4;
debugOrgFogGrn = temp4;
temp5 = (currentUnit->FogColor >> 0) & 0xFF;
debugFogBlu = temp5;
debugOrgFogBlu = temp5;
}


Expand Down

0 comments on commit 97ac818

Please sign in to comment.