New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CG_CustomSound
is broken
#2974
Comments
Worth noting that the custom sound that causes the crash on |
What is a sensible method to handle the case of a missing sound file? I would say: do the same as with missing textures. Print a warning, play nothing. |
I have this exact fix running on bunker but the sound that causes the crash is listed in Unvanquished/src/cgame/cg_players.cpp Lines 44 to 59 in befc9f4
|
In the Tremulous source code, the array of death sounds have extensions. Here, we do not have these. |
When testing the map
mxl-school
which appears to make use of these, the client is dropped by this line when falling off the ledge in the secret room by the computer room as a custom sound is triggered:Unvanquished/src/cgame/cg_players.cpp
Line 92 in befc9f4
I have worked around this on Bunker by returning
sounds/null.wav
but that is a hack so I'm hesitant to PR such code until I understand why the existing code is broken.The text was updated successfully, but these errors were encountered: