mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
First decay light effects and then decay smoke effects, because fire can create light.
Dynamic creation of light effects for fire and signal smoke (ADD_LIGHT_AFTER_EXPLOSION option). Fixed/improved code to decay light effects so that ubDuration works correctly. Note: <ubRadius> tag is not used for light effects as they cannot spread, light is always created with <ubStartRadius> and can only decay later. Improved code to decay smoke effects. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8767 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -763,7 +763,7 @@ void DecaySmokeEffects( UINT32 uiTime )
|
||||
else
|
||||
{
|
||||
// ATE: Do this every so ofte, to acheive the effect we want...
|
||||
if ( ( uiTime - pSmoke->uiTimeOfLastUpdate ) > 10 )
|
||||
if ( ( uiTime - pSmoke->uiTimeOfLastUpdate ) >= 10 )
|
||||
{
|
||||
fUpdate = TRUE;
|
||||
usNumUpdates = ( UINT16 ) ( ( uiTime - pSmoke->uiTimeOfLastUpdate ) / 10 );
|
||||
|
||||
Reference in New Issue
Block a user