mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 08:00:01 +00:00
Small type use fixes
# Conflicts: # src/audio/AudioLogic.cpp # src/control/Garages.cpp # src/vehicles/Cranes.cpp
This commit is contained in:
parent
0768026938
commit
6a2edcea46
|
@ -123,31 +123,31 @@ cAudioManager::PostInitialiseGameSpecificSetup()
|
|||
{
|
||||
m_nFireAudioEntity = CreateEntity(AUDIOTYPE_FIRE, &gFireManager);
|
||||
if (m_nFireAudioEntity >= 0)
|
||||
SetEntityStatus(m_nFireAudioEntity, 1);
|
||||
SetEntityStatus(m_nFireAudioEntity, true);
|
||||
|
||||
m_nCollisionEntity = CreateEntity(AUDIOTYPE_COLLISION, (void *)1);
|
||||
if (m_nCollisionEntity >= 0)
|
||||
SetEntityStatus(m_nCollisionEntity, 1);
|
||||
SetEntityStatus(m_nCollisionEntity, true);
|
||||
|
||||
m_nFrontEndEntity = CreateEntity(AUDIOTYPE_FRONTEND, (void *)1);
|
||||
if (m_nFrontEndEntity >= 0)
|
||||
SetEntityStatus(m_nFrontEndEntity, 1);
|
||||
SetEntityStatus(m_nFrontEndEntity, true);
|
||||
|
||||
m_nProjectileEntity = CreateEntity(AUDIOTYPE_PROJECTILE, (void *)1);
|
||||
if (m_nProjectileEntity >= 0)
|
||||
SetEntityStatus(m_nProjectileEntity, 1);
|
||||
SetEntityStatus(m_nProjectileEntity, true);
|
||||
|
||||
m_nWaterCannonEntity = CreateEntity(AUDIOTYPE_WATERCANNON, (void *)1);
|
||||
if (m_nWaterCannonEntity >= 0)
|
||||
SetEntityStatus(m_nWaterCannonEntity, 1);
|
||||
SetEntityStatus(m_nWaterCannonEntity, true);
|
||||
|
||||
m_nPoliceChannelEntity = CreateEntity(AUDIOTYPE_POLICERADIO, (void *)1);
|
||||
if (m_nPoliceChannelEntity >= 0)
|
||||
SetEntityStatus(m_nPoliceChannelEntity, 1);
|
||||
SetEntityStatus(m_nPoliceChannelEntity, true);
|
||||
#ifdef GTA_BRIDGE
|
||||
m_nBridgeEntity = CreateEntity(AUDIOTYPE_BRIDGE, (void*)1);
|
||||
if (m_nBridgeEntity >= 0)
|
||||
SetEntityStatus(m_nBridgeEntity, 1);
|
||||
SetEntityStatus(m_nBridgeEntity, true);
|
||||
#endif // GTA_BRIDGE
|
||||
m_nEscalatorEntity = CreateEntity(AUDIOTYPE_ESCALATOR, (void*)1);
|
||||
if (m_nEscalatorEntity >= 0)
|
||||
|
@ -261,7 +261,7 @@ cAudioManager::ProcessReverb() const
|
|||
if (SampleManager.UpdateReverb() && m_bDynamicAcousticModelingStatus) {
|
||||
for (uint32 i = 0; i < numChannels; i++) {
|
||||
if (m_asActiveSamples[i].m_bReverbFlag)
|
||||
SampleManager.SetChannelReverbFlag(i, 1);
|
||||
SampleManager.SetChannelReverbFlag(i, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -350,7 +350,7 @@ cAudioManager::ProcessSpecial()
|
|||
if (playerPed != nil) {
|
||||
if (playerPed->m_audioEntityId >= 0 && m_asAudioEntities[playerPed->m_audioEntityId].m_bIsUsed) {
|
||||
if (playerPed->EnteringCar()) {
|
||||
if(!playerPed->bInVehicle&& CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle == nil)
|
||||
if(!playerPed->bInVehicle && CWorld::Players[CWorld::PlayerInFocus].m_pRemoteVehicle == nil)
|
||||
SampleManager.StopChannel(m_nActiveSamples);
|
||||
}
|
||||
}
|
||||
|
@ -361,7 +361,7 @@ cAudioManager::ProcessSpecial()
|
|||
void
|
||||
cAudioManager::ProcessEntity(int32 id)
|
||||
{
|
||||
if (m_asAudioEntities[id].m_nStatus != STATUS_PLAYER) {
|
||||
if (m_asAudioEntities[id].m_bStatus) {
|
||||
m_sQueueSample.m_nEntityIndex = id;
|
||||
switch (m_asAudioEntities[id].m_nType) {
|
||||
case AUDIOTYPE_PHYSICAL:
|
||||
|
|
|
@ -128,7 +128,7 @@ cAudioManager::CreateEntity(eAudioType type, void *entity)
|
|||
for (uint32 i = 0; i < ARRAY_SIZE(m_asAudioEntities); i++) {
|
||||
if (!m_asAudioEntities[i].m_bIsUsed) {
|
||||
m_asAudioEntities[i].m_bIsUsed = true;
|
||||
m_asAudioEntities[i].m_nStatus = 0;
|
||||
m_asAudioEntities[i].m_bStatus = false;
|
||||
m_asAudioEntities[i].m_nType = type;
|
||||
m_asAudioEntities[i].m_pEntity = entity;
|
||||
m_asAudioEntities[i].m_awAudioEvent[0] = SOUND_NO_SOUND;
|
||||
|
@ -163,7 +163,7 @@ void
|
|||
cAudioManager::SetEntityStatus(int32 id, uint8 status)
|
||||
{
|
||||
if (m_bIsInitialised && id >= 0 && id < NUM_AUDIOENTITIES && m_asAudioEntities[id].m_bIsUsed)
|
||||
m_asAudioEntities[id].m_nStatus = status;
|
||||
m_asAudioEntities[id].m_bStatus = status;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -49,7 +49,7 @@ public:
|
|||
eAudioType m_nType;
|
||||
void *m_pEntity;
|
||||
bool m_bIsUsed;
|
||||
uint8 m_nStatus;
|
||||
uint8 m_bStatus;
|
||||
int16 m_awAudioEvent[NUM_AUDIOENTITY_EVENTS];
|
||||
float m_afVolume[NUM_AUDIOENTITY_EVENTS];
|
||||
uint8 m_AudioEvents;
|
||||
|
|
|
@ -67,7 +67,7 @@ cAudioManager::InitialisePoliceRadio()
|
|||
for (int32 i = 0; i < ARRAY_SIZE(m_sPoliceRadioQueue.crimes); i++)
|
||||
m_sPoliceRadioQueue.crimes[i].type = CRIME_NONE;
|
||||
|
||||
SampleManager.SetChannelReverbFlag(policeChannel, 0);
|
||||
SampleManager.SetChannelReverbFlag(policeChannel, false);
|
||||
gSpecialSuspectLastSeenReport = false;
|
||||
for (int32 i = 0; i < ARRAY_SIZE(gMinTimeToNextReport); i++)
|
||||
gMinTimeToNextReport[i] = m_FrameCounter;
|
||||
|
|
|
@ -152,7 +152,7 @@ void CGarages::Init(void)
|
|||
}
|
||||
hGarages = DMAudio.CreateEntity(AUDIOTYPE_GARAGE, (void*)1);
|
||||
if (hGarages >= 0)
|
||||
DMAudio.SetEntityStatus(hGarages, 1);
|
||||
DMAudio.SetEntityStatus(hGarages, true);
|
||||
}
|
||||
|
||||
void CGarages::Shutdown(void)
|
||||
|
|
|
@ -319,7 +319,7 @@ CPed::CPed(uint32 pedType) : m_pedIK(this)
|
|||
bCanGiveUpSunbathing = true;
|
||||
|
||||
m_audioEntityId = DMAudio.CreateEntity(AUDIOTYPE_PHYSICAL, this);
|
||||
DMAudio.SetEntityStatus(m_audioEntityId, 1);
|
||||
DMAudio.SetEntityStatus(m_audioEntityId, true);
|
||||
m_fearFlags = CPedType::GetThreats(m_nPedType);
|
||||
m_threatEntity = nil;
|
||||
m_eventOrThreat = CVector2D(0.0f, 0.0f);
|
||||
|
|
|
@ -139,7 +139,7 @@ void CWeather::Init(void)
|
|||
ForcedWeatherType = WEATHER_RANDOM;
|
||||
SoundHandle = DMAudio.CreateEntity(AUDIOTYPE_WEATHER, (void*)1);
|
||||
if (SoundHandle >= 0)
|
||||
DMAudio.SetEntityStatus(SoundHandle, 1);
|
||||
DMAudio.SetEntityStatus(SoundHandle, true);
|
||||
}
|
||||
|
||||
void CWeather::Update(void)
|
||||
|
|
Loading…
Reference in a new issue