aboutsummaryrefslogtreecommitdiff
path: root/Source/Person.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Person.cpp')
-rw-r--r--Source/Person.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Person.cpp b/Source/Person.cpp
index 79f4109..43aa873 100644
--- a/Source/Person.cpp
+++ b/Source/Person.cpp
@@ -526,7 +526,12 @@ void Person::DoAnimations(int who){
gLoc[0]=playercoords.x/soundscalefactor;
gLoc[1]=playercoords.y/soundscalefactor;
gLoc[2]=playercoords.z/soundscalefactor;
+#ifdef DEBIAN_NEEDS_TO_UPDATE_THEIR_OPENAL
+ alGetSourceiv(gSourceID[reloadsound], AL_SOURCE_STATE, &tempint);
+#else
alGetSourcei(gSourceID[reloadsound], AL_SOURCE_STATE, &tempint);
+#endif
+
if (tempint != AL_PLAYING){
alSourcefv(gSourceID[reloadsound], AL_POSITION, gLoc);
alSourcePlay(gSourceID[reloadsound]);