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

Fixes #1313 (waypoints). #1319

Merged
merged 2 commits into from
Dec 18, 2015

Conversation

Dunbaratu
Copy link
Member

In testing this I also found a longstanding bug
that we never noticed before, in which it fails
to find a hit when the name does NOT use a greek
letter like "alpha" or "beta", but does contain
a space in the contract name.

i.e. like so:

Waypoint("apple") finds a waypoint called "apple"
correctly.

Waypoint("apple gamma") finds a waypoint called
"apple gamma" correctly, by stripping off the word
"gamma" and replacing it with the information that
this is waypoint index 2 of the set of waypoints
called "apple".

But Waypoint("apple lemon pear") fails. It has spaces but
NOT because it has a greek letter suffix. What the code
was doing was treating it like the last term was a
greek letter and stripping it whether it really was or not,
so it failed to find the waypoint because it looked for
it by the name "apple lemon".

This was fixed by this PR as well as the original problem
mentioned in the issue about the error message.

In testing this I also found a longstanding bug
that we never noticed before, in which it fails
to find a hit when the name does NOT use a greek
letter like "alpha" or "beta", but *does* contain
a space in the contract name.

i.e. like so:

Waypoint("apple") finds a waypoint called "apple"
correctly.

Waypoint("apple gamma") finds a waypoint called
"apple gamma" correctly, by stripping off the word
"gamma" and replacing it with the information that
this is waypoint index 2 of the set of waypoints
called "apple".

But Waypoint("apple lemon pear") fails.  It has spaces but
NOT because it has a greek letter suffix.  What the code
was doing was treating it like the last term was a
greek letter and stripping it whether it really was or not,
so it failed to find the waypoint because it looked for
it by the name "apple lemon".

This was fixed by this PR as well as the original problem
mentioned in the issue about the error message.
erendrake added a commit that referenced this pull request Dec 18, 2015
@erendrake erendrake merged commit f9fc4e0 into KSP-KOS:develop Dec 18, 2015
@Dunbaratu Dunbaratu deleted the fixes_1313_waypoint_message branch December 27, 2015 18:00
@Dunbaratu Dunbaratu added the bug Weird outcome is probably not what the mod programmer expected. label Feb 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Weird outcome is probably not what the mod programmer expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants