summaryrefslogtreecommitdiffstats
path: root/src/vehicles/Cranes.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-08 13:29:55 +0200
committerSergeanur <s.anureev@yandex.ua>2020-06-08 13:29:55 +0200
commit8cd87236c98bc42cd98f80fc488460881cae2880 (patch)
treef8b7b5f9294f624b2947bb6e31546fa0fc9f699f /src/vehicles/Cranes.cpp
parentMerge branch 'miami' into VC/MissionAudio (diff)
downloadre3-8cd87236c98bc42cd98f80fc488460881cae2880.tar
re3-8cd87236c98bc42cd98f80fc488460881cae2880.tar.gz
re3-8cd87236c98bc42cd98f80fc488460881cae2880.tar.bz2
re3-8cd87236c98bc42cd98f80fc488460881cae2880.tar.lz
re3-8cd87236c98bc42cd98f80fc488460881cae2880.tar.xz
re3-8cd87236c98bc42cd98f80fc488460881cae2880.tar.zst
re3-8cd87236c98bc42cd98f80fc488460881cae2880.zip
Diffstat (limited to '')
-rw-r--r--src/vehicles/Cranes.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/vehicles/Cranes.cpp b/src/vehicles/Cranes.cpp
index db7b514f..c8fa1c22 100644
--- a/src/vehicles/Cranes.cpp
+++ b/src/vehicles/Cranes.cpp
@@ -84,9 +84,6 @@ void CCranes::AddThisOneCrane(CEntity* pEntity)
pCrane->m_nTimeForNextCheck = 0;
pCrane->m_nCraneState = CCrane::IDLE;
pCrane->m_bWasMilitaryCrane = false;
- pCrane->m_nAudioEntity = DMAudio.CreateEntity(AUDIOTYPE_CRANE, &aCranes[NumCranes]);
- if (pCrane->m_nAudioEntity >= 0)
- DMAudio.SetEntityStatus(pCrane->m_nAudioEntity, 1);
pCrane->m_bIsTop = (MODELID_CRANE_1 != pEntity->GetModelIndex());
#if 0
// Is this used to avoid military crane?
@@ -669,11 +666,11 @@ void CCranes::Load(uint8* buf, uint32 size)
if (pCrane->m_pVehiclePickedUp != nil)
pCrane->m_pVehiclePickedUp = CPools::GetVehiclePool()->GetSlot((uintptr)pCrane->m_pVehiclePickedUp - 1);
}
- for (int i = 0; i < NUM_CRANES; i++) {
+ /*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);
- }
+ }*/
VALIDATESAVEBUF(size);
}