Skip to content

[Bug]: canSeeToken is flaky in some situations #6044

Description

@bubblobill

Describe the Bug

canSeeToken() often returns an empty array for a token that can be seen.
This is often the case with large tokens seen through narrow gaps where the vertices checked are not in the visible area.

To Reproduce

  1. Place two tokens either side of a gap, make one of them big. See screenshot.
  2. Call canSeeToken(y) on token x.
  3. It is possible to position the tokens to return a false negative.

Expected Behaviour

return a useful result such as true in place of the list of points.

Screenshots

Image

MapTool Info

No response

Desktop

No response

Additional Context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions