mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
-minor lighting fix
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@212 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -380,7 +380,7 @@ void DeleteAniTile( ANITILE *pAniTile )
|
||||
break;
|
||||
|
||||
}
|
||||
if ( pAniNode->uiFlags & ANITILE_LIGHT && pAniNode->lightSprite > 0 )
|
||||
if ( pAniNode->uiFlags & ANITILE_LIGHT && pAniNode->lightSprite >= 0 )
|
||||
{
|
||||
LightSpriteDestroy(pAniNode->lightSprite);
|
||||
}
|
||||
@@ -613,7 +613,7 @@ void UpdateAniTiles( )
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( pNode->uiFlags & ANITILE_LIGHT && pNode->lightSprite > 0 )
|
||||
if ( pNode->uiFlags & ANITILE_LIGHT && pNode->lightSprite >= 0 )
|
||||
{
|
||||
LightSpriteDestroy(pAniNode->lightSprite);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user