Closed lenhart closed 3 years ago
Thanks for the corrections.
Very welcome! Any comments on my question in the initial PR? (especially the break statement). I admit that it isn't the best place to ask unrelated questions in the PR, but I didn't want to open an issue for that question either..
Thank you for your suggestions. The wrong break location in the parse options is now fixed. For the second suggestion, I'd rather leave it as it is.
some minor spelling fixes in gpssim.c
Plus I discovered 2 things I wanted to ask about before modifying:
while parsing options there is one break in a if conditional. is this deliberate? Line 1823:
Also I would suggest to mark all deliberate fall-through in switch cases with comments to prevent future errors. I can do that quickly if wanted.
would code simplification be welcomed as PR?
could be simplified to
return (azel[1]*R2D > elvMask); //true if visible, false ow.
that would be a bit simpler but now that I write it, I notice that I thought of returning a bool.. fct is only used once in an if statement though..Thanks for the good work!