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 turret arc limit being flipped when reloading save. #20

Merged
merged 74 commits into from
May 5, 2023

Conversation

1010todd
Copy link

@1010todd 1010todd commented May 5, 2023


Bugfix: This PR addresses issue none.

Fix Details

Fix turret angle being flipped every time save is loaded, accidentally reverted the fix sometime ago. This should fix it again.

Testing Done

Compiled and test flying around fighting things with the ship from the test plugin below.

Save File

This save file can be used to verify the bugfix. The bug will occur when using {{insert commit hash / version}}, and will not occur when using this branch's build.

Test plugin (test ship available at Basic Ships shipyard.):
arclimtestplugin.zip

oo13 and others added 30 commits October 18, 2020 19:30
- Introduce an attribute "angle of traverse" for a hardpoint.
- Change a type of parameter in the constructor of class "Hardpoint."
- GetAngleOfTraverse() returns some valid value in case this is Omnidirectional or a gun port.
- Rewrite some comments.
…cted hardpoint and weapon.

The previous commit introduced the bug.
…ad of in-flight.

And the turrets calculate the idle position considering the "parallel" parameter.
So it compiles.
1010todd and others added 28 commits October 21, 2022 01:48
Use `IsInRange` instead of comparing degrees.

Co-authored-by: oo13 <[email protected]>
Construct Angle with double to avoid using private function.
Co-authored-by: Rising Leaf <[email protected]>
@RisingLeaf RisingLeaf merged commit 990d837 into endless-sky:experimental May 5, 2023
@1010todd 1010todd deleted the delta-turret-arc-fix branch May 5, 2023 16:33
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.

4 participants