Skip to content

Commit

Permalink
DEBUG: Implement DEBUG_FogLoad
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoMilesi committed Nov 12, 2023
1 parent 04f2639 commit 626d1b1
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 626d1b1

Please sign in to comment.