diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 07:59:32 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-25 07:59:32 +0100 |
commit | de31bdc89fe2b2d191bee7a0c224b35bc0c9612e (patch) | |
tree | 677be52372e636035f37c0d18b27f9892228425c /src/vehicles | |
parent | Merge pull request #886 from erorcun/master (diff) | |
download | re3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.tar re3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.tar.gz re3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.tar.bz2 re3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.tar.lz re3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.tar.xz re3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.tar.zst re3-de31bdc89fe2b2d191bee7a0c224b35bc0c9612e.zip |
Diffstat (limited to '')
-rw-r--r-- | src/vehicles/Cranes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicles/Cranes.cpp b/src/vehicles/Cranes.cpp index 564f493d..1191465a 100644 --- a/src/vehicles/Cranes.cpp +++ b/src/vehicles/Cranes.cpp @@ -85,7 +85,7 @@ void CCranes::AddThisOneCrane(CEntity* pEntity) pCrane->m_bWasMilitaryCrane = false; pCrane->m_nAudioEntity = DMAudio.CreateEntity(AUDIOTYPE_CRANE, &aCranes[NumCranes]); if (pCrane->m_nAudioEntity >= 0) - DMAudio.SetEntityStatus(pCrane->m_nAudioEntity, 1); + DMAudio.SetEntityStatus(pCrane->m_nAudioEntity, true); pCrane->m_bIsTop = (MODELID_CRANE_1 != pEntity->GetModelIndex()); // Is this used to avoid military crane? if (pCrane->m_bIsTop || pEntity->GetPosition().y > 0.0f) { @@ -669,7 +669,7 @@ void CCranes::Load(uint8* buf, uint32 size) for (int i = 0; i < NUM_CRANES; i++) { aCranes[i].m_nAudioEntity = DMAudio.CreateEntity(AUDIOTYPE_CRANE, &aCranes[i]); if (aCranes[i].m_nAudioEntity != 0) - DMAudio.SetEntityStatus(aCranes[i].m_nAudioEntity, 1); + DMAudio.SetEntityStatus(aCranes[i].m_nAudioEntity, true); } VALIDATESAVEBUF(size); |