diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-10-10 14:23:17 +0300 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-10-12 06:42:54 +0300 |
commit | 8a622a0e724cd00acc7e61b159462355319b39cb (patch) | |
tree | dadddb5687c56a275313360d36a2bdbcc1b9659f /src/render/WaterCannon.cpp | |
parent | a01b14f301afe9cea86f47b3ab27ce999097741a (diff) |
Hud, Fire, OnscreenBlaBla
Diffstat (limited to 'src/render/WaterCannon.cpp')
-rw-r--r-- | src/render/WaterCannon.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/render/WaterCannon.cpp b/src/render/WaterCannon.cpp index 2b34db37..bd2b9a68 100644 --- a/src/render/WaterCannon.cpp +++ b/src/render/WaterCannon.cpp @@ -77,9 +77,13 @@ void CWaterCannon::Update_OncePerFrame(int16 index) } } - int32 extinguishingPoint = CGeneral::GetRandomNumber() & (NUM_SEGMENTPOINTS - 1); - if ( m_abUsed[extinguishingPoint] ) - gFireManager.ExtinguishPoint(m_avecPos[extinguishingPoint], 3.0f); + for ( int32 i = 0; i < NUM_SEGMENTPOINTS; i++ ) + { + if ( m_abUsed[i] && gFireManager.ExtinguishPointWithWater(m_avecPos[i], 4.0f) ) + { + break; + } + } if ( ((index + CTimer::GetFrameCounter()) & 3) == 0 ) PushPeds(); |