*********************************************************

*	2006/05/04					*
*	Madd Mugsy					*
*	Developed in VS 2003				*
*********************************************************

- Added tile lighting animation effects to tracer bullets, forced muzzle flash on tracers so enemies can see you, regardless of flash suppression
- Re-enabled laptop animation, since Lesh fixed it (I forgot to mention that in my earlier changes :p)




git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@54 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
lalien
2006-05-04 13:29:18 +00:00
parent 973325bddc
commit f4bf5fd1f7
10 changed files with 153 additions and 123 deletions
+27
View File
@@ -136,6 +136,24 @@ ANITILE *CreateAnimationTile( ANITILE_PARAMS *pAniParams )
pNewAniNode->pLevelNode = pNode;
if ( uiFlags & ANITILE_LIGHT )
{
if ( ubAmbientLightLevel >= MIN_AMB_LEVEL_FOR_MERC_LIGHTS )
{
if( ( pNewAniNode->lightSprite=LightSpriteCreate("L-R03.LHT", 0 ) )!=(-1))
{
LightSpritePower(pNewAniNode->lightSprite, TRUE);
{
INT16 sXPos, sYPos;
ConvertGridNoToCenterCellXY( sGridNo, &sXPos, &sYPos );
LightSpritePosition( pNewAniNode->lightSprite, (INT16)(sXPos/CELL_X_SIZE), (INT16)(sYPos/CELL_Y_SIZE));
}
}
}
}
if ( ( uiFlags & ANITILE_CACHEDTILE ) )
{
pNewAniNode->pLevelNode->uiFlags |= ( LEVELNODE_CACHEDANITILE );
@@ -363,6 +381,10 @@ void DeleteAniTile( ANITILE *pAniTile )
break;
}
if ( pAniNode->uiFlags & ANITILE_LIGHT )
{
LightSpriteDestroy(pAniNode->lightSprite);
}
if ( ( pAniNode->uiFlags & ANITILE_CACHEDTILE ) )
{
@@ -592,6 +614,11 @@ void UpdateAniTiles( )
}
else
{
//if ( pNode->uiFlags & ANITILE_LIGHT )
//{
// LightSpriteDestroy(pNode->lightSprite);
//}
// Delete from world!
DeleteAniTile( pNode );