RPTools / maptool

Virtual Tabletop for playing roleplaying games with remote players or face to face.
http://rptools.net
GNU Affero General Public License v3.0
787 stars 259 forks source link

Do not modify token facing when calculating light and vision #4955

Open kwvanderlinde opened 22 hours ago

kwvanderlinde commented 22 hours ago

Identify the Bug or Feature request

Fixes #4929

Description of the Change

Grid.getShapedArea() was forcing a token facing to 0 if it did not have one. The override in IsometricGrid was doing the same. This PR changes it to just use a default value instead, through Token.getFacingInDegrees().

Some clean up was also done on the implementation.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes


This change is Reviewable