summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-15 14:11:20 +0300
committerSergeanur <s.anureev@yandex.ua>2021-08-15 14:11:20 +0300
commit854ee12d9d6af1fb7390cbfbec59630d2c397673 (patch)
tree0de3a5d4e49c4b9ceb547861015985b41fecb5f8
parent5ddd0649e30178964c4acaca3938c446655f0cb9 (diff)
Fix ifdef for audio reflection members
-rw-r--r--src/audio/AudioManager.cpp2
-rw-r--r--src/audio/AudioManager.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 14769c10..78b56550 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -735,7 +735,7 @@ cAudioManager::UpdateReflections()
m_afReflectionsDistances[4] = 50.0f;
}
}
-#endif // GTA_PC
+#endif // GTA_VERSION >= GTA3_PC_10
void
cAudioManager::AddReleasingSounds()
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index 79eb08d6..d5f66fd0 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -222,7 +222,7 @@ public:
tAudioEntity m_asAudioEntities[NUM_AUDIOENTITIES];
int32 m_anAudioEntityIndices[NUM_AUDIOENTITIES];
int32 m_nAudioEntitiesTotal;
-#ifdef GTA_PC
+#if GTA_VERSION >= GTA3_PC_10
CVector m_avecReflectionsPos[NUM_AUDIO_REFLECTIONS];
float m_afReflectionsDistances[NUM_AUDIO_REFLECTIONS];
#endif