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

Fix IsClientSourceTV in L4D2 #2143

Merged
merged 1 commit into from
Apr 28, 2024
Merged

Fix IsClientSourceTV in L4D2 #2143

merged 1 commit into from
Apr 28, 2024

Conversation

adriansmares
Copy link
Contributor

References 8a10f4b
References 90ca9d7

This PR fixes IsClientSourceTV in L4D2 when a custom tv_name is used. Specifically a non SourceTV tv_name was incorrectly resulting in the bot not being considered the SourceTV bot.

The first commit makes this specific distinction for L4D2 - that the bot is spawned as SourceTV even if tv_name has a different value. The second commit makes L4D2 also compare the bot name with tv_name even though this is not applicable.

Credit for finding the cause of this issue goes to @asherkin . Tested with SourceTV Support and hide_sourcetv (which seemed to be broken with a custom tv_name, but the problem was in SM).

@adriansmares adriansmares marked this pull request as ready for review April 28, 2024 20:57
@asherkin asherkin merged commit 343f64f into alliedmodders:master Apr 28, 2024
4 checks passed
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