• R/O
  • SSH

zandronum-sandbox-stable: Commit


Commit MetaInfo

Revisióne58d7d75395a8953f3b75e3e15b0d1cb35c544d9 (tree)
Tiempo2023-10-24 23:13:41
AutorAdam Kaminski <kaminskiadam9@gmai...>
CommiterAdam Kaminski

Log Message

Fixed the VoIP channel volumes not being initialized correctly.

Cambiar Resumen

Diferencia incremental

diff -r 35024f2a0729 -r e58d7d75395a src/voicechat.cpp
--- a/src/voicechat.cpp Tue Oct 17 21:12:58 2023 -0400
+++ b/src/voicechat.cpp Tue Oct 24 10:13:41 2023 -0400
@@ -248,7 +248,6 @@
248248
249249 VOIPController::VOIPController( void ) :
250250 pVoIPChannels{ nullptr },
251- channelVolumes{ 1.0f },
252251 testRMSVolume( MIN_DECIBELS ),
253252 pSystem( nullptr ),
254253 pRecordSound( nullptr ),
@@ -265,6 +264,9 @@
265264 bIsRecordButtonPressed( false ),
266265 TransmissionType( TRANSMISSIONTYPE_OFF )
267266 {
267+ for ( ULONG i = 0; i < MAXPLAYERS; i++ )
268+ channelVolumes[i] = 1.0f;
269+
268270 proximityInfo.SysChannel = nullptr;
269271 proximityInfo.StartTime.AsOne = 0;
270272 proximityInfo.Rolloff.RolloffType = ROLLOFF_Doom;
Show on old repository browser