mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
- debug logging was removed, I forgot about this
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@556 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1206,31 +1206,18 @@ void ExplosiveDamageGridNo( INT16 sGridNo, INT16 sWoundAmt, UINT32 uiDist, BOOLE
|
||||
UINT8 ubNumberOfTiles;
|
||||
BOOLEAN fMultiStructSpecialFlag = FALSE;
|
||||
BOOLEAN fExplodeDamageReturn = FALSE;
|
||||
FILE *pDebug;
|
||||
|
||||
pDebug = fopen("explosion.log", "wt");
|
||||
fprintf(pDebug, "ExplosiveDamageGridNo start\n");
|
||||
fclose(pDebug);
|
||||
|
||||
// Based on distance away, damage any struct at this gridno
|
||||
// OK, loop through structures and damage!
|
||||
pCurrent = gpWorldLevelData[ sGridNo ].pStructureHead;
|
||||
sDesiredLevel = STRUCTURE_ON_GROUND;
|
||||
|
||||
pDebug = fopen("explosion.log", "a+t");
|
||||
fprintf(pDebug, "sGridNo = %d\n", sGridNo);
|
||||
fprintf(pDebug, "pCurrent = %08X\n", pCurrent);
|
||||
fclose(pDebug);
|
||||
|
||||
// This code gets a little hairy because
|
||||
// (1) we might need to destroy the currently-examined structure
|
||||
while (pCurrent != NULL)
|
||||
{
|
||||
// ATE: These are for the chacks below for multi-structs....
|
||||
pBaseStructure = FindBaseStructure( pCurrent );
|
||||
pDebug = fopen("explosion.log", "a+t");
|
||||
fprintf(pDebug, "pBaseStructure = %08X\n", pBaseStructure);
|
||||
fclose(pDebug);
|
||||
|
||||
if ( pBaseStructure )
|
||||
{
|
||||
@@ -1239,14 +1226,6 @@ void ExplosiveDamageGridNo( INT16 sGridNo, INT16 sWoundAmt, UINT32 uiDist, BOOLE
|
||||
fMultiStructure = ( ( pBaseStructure->fFlags & STRUCTURE_MULTI ) != 0 );
|
||||
ppTile = (DB_STRUCTURE_TILE **) MemAlloc( sizeof( DB_STRUCTURE_TILE ) * ubNumberOfTiles );
|
||||
|
||||
pDebug = fopen("explosion.log", "a+t");
|
||||
fprintf(pDebug, "sBaseGridNo = %d\n", sBaseGridNo);
|
||||
fprintf(pDebug, "ubNumberOfTiles = %d\n", ubNumberOfTiles);
|
||||
fprintf(pDebug, "fMultiStructure = %d\n", fMultiStructure);
|
||||
fprintf(pDebug, "ppTile = %08X\n", ppTile);
|
||||
fprintf(pDebug, "pBaseStructure->pDBStructureRef->ppTile = %08X\n", pBaseStructure->pDBStructureRef->ppTile);
|
||||
fclose(pDebug);
|
||||
|
||||
// Lesh: CTD was in next line once
|
||||
memcpy( ppTile, pBaseStructure->pDBStructureRef->ppTile, sizeof( DB_STRUCTURE_TILE ) * ubNumberOfTiles );
|
||||
|
||||
@@ -1362,10 +1341,6 @@ void ExplosiveDamageGridNo( INT16 sGridNo, INT16 sWoundAmt, UINT32 uiDist, BOOLE
|
||||
pCurrent = pNextCurrent;
|
||||
}
|
||||
|
||||
|
||||
pDebug = fopen("explosion.log", "a+t");
|
||||
fprintf(pDebug, "ExplosiveDamageGridNo finish\n");
|
||||
fclose(pDebug);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user