mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Added new options:
- ENABLE_TA enables fire ambient sound - VOLUME_TA controls fire ambient sound volume Fire ambient sound is played in a loop when there is active fire effect on screen. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8738 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1063,3 +1063,30 @@ BOOL GetRandomSignalSmokeGridNo(INT32* psGridNo)
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOLEAN FindVisibleSmokeEffect(INT8 bType)
|
||||
{
|
||||
UINT32 uiCnt;
|
||||
INT8 bSmokeEffectLevel;
|
||||
|
||||
//loop through all smoke effects
|
||||
for (uiCnt = 0; uiCnt < guiNumSmokeEffects; uiCnt++)
|
||||
{
|
||||
if (gSmokeEffectData[uiCnt].fAllocated &&
|
||||
gSmokeEffectData[uiCnt].bType == bType)
|
||||
{
|
||||
if (gSmokeEffectData[uiCnt].bFlags & SMOKE_EFFECT_ON_ROOF)
|
||||
bSmokeEffectLevel = 1;
|
||||
else
|
||||
bSmokeEffectLevel = 0;
|
||||
|
||||
if (!TileIsOutOfBounds(gSmokeEffectData[uiCnt].sGridNo) &&
|
||||
GridNoOnScreen(gSmokeEffectData[uiCnt].sGridNo))
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user