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

Reveal: Fix Reveal plugin always revealing PCs when the plugin is enabled, regardless of usage. #1695

Merged
merged 3 commits into from
Aug 26, 2023
Merged

Reveal: Fix Reveal plugin always revealing PCs when the plugin is enabled, regardless of usage. #1695

merged 3 commits into from
Aug 26, 2023

Conversation

summonFox
Copy link
Contributor

As the label on the tin says, this fixes PCs always being revealed to other PCs when the plugin is enabled regardless of plugin usage, as mentioned by someone on discord a while ago which I ran into today when enabling and attempting to use the plugin: https://discord.com/channels/382306806866771978/387223972808359936/1121979712818917436

@Daztek
Copy link
Member

Daztek commented Aug 26, 2023

I'll assume this fixes whatever is broken since I don't use it.

Comment on lines +61 to +62
if (detectionVector && *detectionVector)
*bSeen = *detectionVector;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs a

else
    *bSeen = false;

the variables that bSeen/bHeard are pointing to aren't initialized, so they should always be set to something

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah; done

@Daztek Daztek merged commit bb55146 into nwnxee:master Aug 26, 2023
@summonFox summonFox deleted the Fix-reveal-plugin-revealing-all-PCs branch February 13, 2024 08:29
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