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 an oversight in the Area POI detection #723

Merged
merged 1 commit into from
Jun 8, 2024
Merged

Conversation

rdw-software
Copy link
Member

@rdw-software rdw-software commented Jun 8, 2024

When an item doesn't require active Area POIs, which is the case for almost all items in the database, the field should simply be ignored. The code currently specifies that attempts should be disallowed in this case, which is clearly wrong (and I missed it).

I think the reason for this is somewhat poor naming of HasActiveAreaPOIs - it detects whether the current map has active area POIs AND whether the given list of POIs contains an entry that is currently active. This is arguably not immediately obvious, but there are other issues that need fixing also. Might need a rework the POI code to fix #721 (deferred for now).

When an item doesn't require active Area POIs, which is the case for almost all items in the database, the field should simply be ignored. The code currently specifies that attempts should be disallowed in this case, which is clearly wrong.
@rdw-software rdw-software merged commit a6d4251 into master Jun 8, 2024
7 checks passed
@rdw-software rdw-software deleted the area-poi-fix branch June 8, 2024 18:23
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.

Improve accuracy of the area POI detection for Primal Storm events
1 participant