[iortcw] 181/497: All: Only print allocated AL source count on init

Simon McVittie smcv at debian.org
Fri Sep 8 10:36:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 368add9afa291d939738cd3bfbe60484c3605008
Author: M4N4T4RMS at gmail.com <M4N4T4RMS at gmail.com@e65d2741-a53d-b2dc-ae96-bb75fa5e4c4a>
Date:   Sun Aug 17 18:17:21 2014 +0000

    All: Only print allocated AL source count on init
---
 MP/code/client/snd_openal.c | 6 ++++--
 SP/code/client/snd_openal.c | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/MP/code/client/snd_openal.c b/MP/code/client/snd_openal.c
index 2422ce8..76c8997 100644
--- a/MP/code/client/snd_openal.c
+++ b/MP/code/client/snd_openal.c
@@ -747,9 +747,8 @@ qboolean S_AL_SrcInit( void )
 		srcCount++;
 	}
 
-	// All done. Print this for informational purposes
-	Com_Printf( "Allocated %d sources.\n", srcCount);
 	alSourcesInitialised = qtrue;
+
 	return qtrue;
 }
 
@@ -2730,6 +2729,9 @@ qboolean S_AL_Init( soundInterface_t *si )
 	S_AL_BufferInit( );
 	S_AL_SrcInit( );
 
+	// Print this for informational purposes
+	Com_Printf( "Allocated %d sources.\n", srcCount);
+
 	// Set up OpenAL parameters (doppler, etc)
 	qalDistanceModel(AL_INVERSE_DISTANCE_CLAMPED);
 	qalDopplerFactor( s_alDopplerFactor->value );
diff --git a/SP/code/client/snd_openal.c b/SP/code/client/snd_openal.c
index 1ac6bdd..be259ca 100644
--- a/SP/code/client/snd_openal.c
+++ b/SP/code/client/snd_openal.c
@@ -748,9 +748,8 @@ qboolean S_AL_SrcInit( void )
 		srcCount++;
 	}
 
-	// All done. Print this for informational purposes
-	Com_Printf( "Allocated %d sources.\n", srcCount);
 	alSourcesInitialised = qtrue;
+
 	return qtrue;
 }
 
@@ -2787,6 +2786,9 @@ qboolean S_AL_Init( soundInterface_t *si )
 	S_AL_BufferInit( );
 	S_AL_SrcInit( );
 
+	// Print this for informational purposes
+	Com_Printf( "Allocated %d sources.\n", srcCount);
+
 	// Set up OpenAL parameters (doppler, etc)
 	qalDistanceModel(AL_INVERSE_DISTANCE_CLAMPED);
 	qalDopplerFactor( s_alDopplerFactor->value );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list