- updated breaklight duration checks to allow us to have shorter duration breaklights

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@194 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
MaddMugsy
2006-06-08 05:23:07 +00:00
parent a38002f606
commit b0271bfc7d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -198,9 +198,9 @@ void DecayLightEffects( UINT32 uiTime )
if ( pLight->fAllocated )
{
// ATE: Do this every so ofte, to acheive the effect we want...
if ( ( uiTime - pLight->uiTimeOfLastUpdate ) > 350 )
if ( ( uiTime - pLight->uiTimeOfLastUpdate ) > 10 )
{
usNumUpdates = ( UINT16 ) ( ( uiTime - pLight->uiTimeOfLastUpdate ) / 350 );
usNumUpdates = ( UINT16 ) ( ( uiTime - pLight->uiTimeOfLastUpdate ) / 10 );
pLight->uiTimeOfLastUpdate = uiTime;