summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-06-08 16:32:57 +0200
committerGitHub <noreply@github.com>2020-06-08 16:32:57 +0200
commit85d845c5ce5b004ef0a005652ebcdb82b1143579 (patch)
treea8e4ec80bc8ecf056616dda057fd96fb635273e1 /src/vehicles
parentbla (diff)
parentfixes (diff)
downloadre3-85d845c5ce5b004ef0a005652ebcdb82b1143579.tar
re3-85d845c5ce5b004ef0a005652ebcdb82b1143579.tar.gz
re3-85d845c5ce5b004ef0a005652ebcdb82b1143579.tar.bz2
re3-85d845c5ce5b004ef0a005652ebcdb82b1143579.tar.lz
re3-85d845c5ce5b004ef0a005652ebcdb82b1143579.tar.xz
re3-85d845c5ce5b004ef0a005652ebcdb82b1143579.tar.zst
re3-85d845c5ce5b004ef0a005652ebcdb82b1143579.zip
Diffstat (limited to 'src/vehicles')
-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);
}