Skip to content
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

[PORT] playsound() will runtime if you try to pass a list into it #3742

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

Absolucy
Copy link
Member

@Absolucy Absolucy commented Oct 9, 2024

About The Pull Request

Port of tgstation/tgstation#86934

Adds an islist() sanity check and runtime to playsound() to prevent client crashing.

Why It's Good For The Game

avoids a situation like #2923 happening again

Changelog

Not player facing

## About The Pull Request

Adds an islist() sanity check and runtime to playsound() to prevent
client crashing.
## Why It's Good For The Game

Clients have a possibility to crash if you pass a list() into
playsound() without runtimming. It's sporadic. It's not consistant. I've
not managed to reproduce it on local. But monkey ran into this issue
before and I've ran into this issue if you forget to use pick()
 
Plus there should honestly just be something to tell people to not pass
lists into something that plays a single sound.

## Changelog

Not player facing
@Absolucy Absolucy merged commit 5ec044d into Monkestation:master Oct 10, 2024
25 checks passed
@Absolucy Absolucy deleted the playsound-safety-rails branch October 10, 2024 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants