diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-05-22 11:11:50 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-06-24 20:32:43 +0200 |
commit | 786e101acff29e07503a4d3c294b613d4a2714b3 (patch) | |
tree | a5cf2a6b05190591891cb4cbf913d1fd667c58c1 /src/vehicles | |
parent | Fix C3dMarkers::PlaceMarker calls in Radar (diff) | |
download | re3-786e101acff29e07503a4d3c294b613d4a2714b3.tar re3-786e101acff29e07503a4d3c294b613d4a2714b3.tar.gz re3-786e101acff29e07503a4d3c294b613d4a2714b3.tar.bz2 re3-786e101acff29e07503a4d3c294b613d4a2714b3.tar.lz re3-786e101acff29e07503a4d3c294b613d4a2714b3.tar.xz re3-786e101acff29e07503a4d3c294b613d4a2714b3.tar.zst re3-786e101acff29e07503a4d3c294b613d4a2714b3.zip |
Diffstat (limited to 'src/vehicles')
-rw-r--r-- | src/vehicles/Cranes.cpp | 4 | ||||
-rw-r--r-- | src/vehicles/Vehicle.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/vehicles/Cranes.cpp b/src/vehicles/Cranes.cpp index 1191465a..0c7913af 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, true); + 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, true); + DMAudio.SetEntityStatus(aCranes[i].m_nAudioEntity, TRUE); } VALIDATESAVEBUF(size); diff --git a/src/vehicles/Vehicle.cpp b/src/vehicles/Vehicle.cpp index 6696f4a6..8885485d 100644 --- a/src/vehicles/Vehicle.cpp +++ b/src/vehicles/Vehicle.cpp @@ -108,7 +108,7 @@ CVehicle::CVehicle(uint8 CreatedBy) m_fMapObjectHeightAhead = m_fMapObjectHeightBehind = 0.0f; m_audioEntityId = DMAudio.CreateEntity(AUDIOTYPE_PHYSICAL, this); if(m_audioEntityId >= 0) - DMAudio.SetEntityStatus(m_audioEntityId, true); + DMAudio.SetEntityStatus(m_audioEntityId, TRUE); m_nRadioStation = CGeneral::GetRandomNumber() % USERTRACK; m_pCurGroundEntity = nil; m_bRainAudioCounter = 0; |