Skip to content

Fix broadcast module unloading#943

Merged
Electroid merged 1 commit into
PGMDev:devfrom
Pugzy:tip-fix
Nov 30, 2021
Merged

Fix broadcast module unloading#943
Electroid merged 1 commit into
PGMDev:devfrom
Pugzy:tip-fix

Conversation

@Pugzy

@Pugzy Pugzy commented Nov 28, 2021

Copy link
Copy Markdown
Contributor

Fixes #938 where reloading a map with tips/alerts would cause them to no longer display.

This was introduced in 529ab16#diff-02f93e0776e398491425d5c04f3cd44595d292c296dae08e0412e890d524c994.

The issue identified above is caused by the unload of the BroadcastMatchModule clearing the map of broadcasts which is actually in the BroadcastModule (MapModule) and not a locally created/used variable. When the map is replayed the map module is reused but no longer contains data. On disable already stops running countdowns so the unload doesn't need to do any extra clean up.

The match module could work on a copy of the data but it isn't mutated anyway (other than the current clearing of it 😆).

Signed-off-by: Pugzy pugzy@mail.com

Signed-off-by: Pugzy <pugzy@mail.com>
@Pugzy Pugzy requested a review from Electroid as a code owner November 28, 2021 11:49
@Electroid Electroid merged commit 19e99dc into PGMDev:dev Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Broadcast module does not work after map is reloaded

2 participants