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

[MIRROR] Fixes tcomms relays being permanent (attempt 2) #593

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Skyrat: Skyrat-SS13/Skyrat-tg#24963
Original PR: tgstation/tgstation#79558

About The Pull Request

The problem was that the levels var of signals was being used as both a list for the levels the receivers can receive on and the levels broadcasters can broadcast on.

So basically I caused this problem in #74788 because I removed receivers clearing the levels list after receiving the signal. This solved the problem of one receiver clearing the receiving list, preventing any other receivers from receiving the message. However, this led to the receiving levels sticking around to the point when the list was meant to be used for broadcasting levels.

I originally tried to solve this problem in #78812 but this fix is much simpler.

Another solution could be to make it so that there's separate vars for receiving levels and broadcasting levels instead of using the same var. idk if thats better or not though

Why It's Good For The Game

Fixes #78806

Changelog

🆑 BlueMemesauce
fix: Fixed tcomms relays being weird, they should be sabotagable again
/:cl:

…B IGNORE] (#24963)

* [NO GBP] Fixes tcomms relays being permanent (attempt 2) (#79558)

## About The Pull Request

The problem was that the levels var of signals was being used as both a
list for the levels the receivers can receive on and the levels
broadcasters can broadcast on.

So basically I caused this problem in #74788 because I removed receivers
clearing the levels list after receiving the signal. This solved the
problem of one receiver clearing the receiving list, preventing any
other receivers from receiving the message. However, this led to the
receiving levels sticking around to the point when the list was meant to
be used for broadcasting levels.

I originally tried to solve this problem in #78812 but this fix is much
simpler.

Another solution could be to make it so that there's separate vars for
receiving levels and broadcasting levels instead of using the same var.
idk if thats better or not though
## Why It's Good For The Game

Fixes #78806
## Changelog
:cl:
fix: Fixed tcomms relays being weird, they should be sabotagable again
/:cl:

* [NO GBP] Fixes tcomms relays being permanent (attempt 2)

---------

Co-authored-by: BlueMemesauce <[email protected]>
@Iajret Iajret merged commit 3e92047 into master Nov 13, 2023
24 checks passed
@Iajret Iajret deleted the upstream-mirror-24963 branch November 13, 2023 14:10
AnywayFarus added a commit that referenced this pull request Nov 13, 2023
Iajret pushed a commit that referenced this pull request Jan 24, 2024
* Fixes weapon racks signal override

* Update gun_racks.dm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants