mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1017 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -185,7 +185,8 @@ INT32 NewSmokeEffect( INT16 sGridNo, UINT16 usItem, INT8 bLevel, UINT8 ubOwner )
|
||||
pSmoke->uiTimeOfLastUpdate = GetWorldTotalSeconds( );
|
||||
|
||||
// Are we indoors?
|
||||
if ( GetTerrainType( sGridNo ) == FLAT_FLOOR )
|
||||
// 0verhaul: Are we on the floor level?
|
||||
if ( GetTerrainType( sGridNo ) == FLAT_FLOOR && bLevel)
|
||||
{
|
||||
pSmoke->bFlags |= SMOKE_EFFECT_INDOORS;
|
||||
}
|
||||
@@ -579,7 +580,7 @@ void DecaySmokeEffects( UINT32 uiTime )
|
||||
else
|
||||
{
|
||||
// damage anyone standing in cloud
|
||||
SpreadEffect( pSmoke->sGridNo, pSmoke->ubRadius, pSmoke->usItem, pSmoke->ubOwner, REDO_SPREAD_EFFECT, 0, cnt );
|
||||
SpreadEffect( pSmoke->sGridNo, pSmoke->ubRadius, pSmoke->usItem, pSmoke->ubOwner, REDO_SPREAD_EFFECT, bLevel, cnt );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user