mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Space Viking's many mercs changes plus numerous generic bug fixes
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2498 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1220,7 +1220,7 @@ void ExplosiveDamageGridNo( INT16 sGridNo, INT16 sWoundAmt, UINT32 uiDist, BOOLE
|
||||
STRUCTURE * pBaseStructure;
|
||||
INT16 sDesiredLevel;
|
||||
DB_STRUCTURE_TILE **ppTile;
|
||||
UINT8 ubLoop, ubLoop2;
|
||||
UINT8 ubLoop, ubLoop2;
|
||||
INT16 sNewGridNo, sNewGridNo2, sBaseGridNo;
|
||||
BOOLEAN fToBreak = FALSE;
|
||||
BOOLEAN fMultiStructure = FALSE;
|
||||
@@ -3010,6 +3010,8 @@ void HandleExplosionQueue( void )
|
||||
}
|
||||
|
||||
uiCurrentTime = GetJA2Clock();
|
||||
// WDS 07/25/2008 - Avoid error where gWorldItems and/or gWorldBombs is nil
|
||||
if (gWorldBombs && gWorldItems) {
|
||||
for ( uiIndex = 0; uiIndex < gubElementsOnExplosionQueue; uiIndex++ )
|
||||
{
|
||||
if ( gExplosionQueue[ uiIndex ].fExists && uiCurrentTime >= gExplosionQueue[ uiIndex ].uiTimeStamp )
|
||||
@@ -3070,6 +3072,7 @@ void HandleExplosionQueue( void )
|
||||
gExplosionQueue[ uiIndex ].fExists = FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// See if we can reduce the # of elements on the queue that we have recorded
|
||||
// Easier to do it at this time rather than in the loop above
|
||||
|
||||
Reference in New Issue
Block a user