You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2024. It is now read-only.
Fixed initialization of network sound data members by using fill in RegisterSoundEvent
Cleaned up NetworkClient, reorganizing things so they actually work, and make more sense - sound containers are no longer deleted, they're just repurposed. I need to investigate this more, it may be that pooling was doing this already, but losing pointers to them could make the already handled set useless.
Copy file name to clipboardExpand all lines: Managers/NetworkClient.cpp
+14-15Lines changed: 14 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -675,27 +675,26 @@ namespace RTE
675
675
if (sndDataPtr->State == AudioMan::SOUND_SET_GLOBAL_PITCH) {
676
676
g_AudioMan.SetGlobalPitch(sndDataPtr->Pitch, sndDataPtr->AffectedByGlobalPitch); //Note AffectedByGlobalPitch is hackily used to determine whether this affects music
// The set of channels that have already been handled for this event, used to potentially avoid repeating actions while still keeping being sure to potentially iterate over every provided channel index
678
+
// The set of SoundContainers that have already been handled for this event, used to hopefully avoid repeating actions when iterating over provided sound channel indices
0 commit comments