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
Move away from walls on evolve #1484
Move away from walls on evolve #1484
Conversation
|
Test procedure: Note that if you go to a corner with things on both side, like in a corner of the alien base in chasm, you may actually not have enough place to evolve: this will not "jump" to allow you to evolve. If you have a corner like this: It won't try to "climb". I think those should be corner cases (hehe). This voluntarily doesn't handle cases where you are under a pipe or similar, and try to evolve anyway. |
8d568d5
to
7dadf40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, fixing the inconvenience which was there since Tremulous.
7dadf40
to
6b8f006
Compare
|
Well it looks like the "vertically" function is supposed to make the final decision on whether evolving is allowed, but in the lateral movement case you forgot to actually call it. |
|
Fixes #480 ! |
6b8f006
to
c976668
Compare
(also split in two functions to prepare for the next commit)
c976668
to
9cc5a12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bug I reported earlier on this PR is now fixed. The code is now a few lines longer but this time I didn't manage to break it 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it intentional that the stuff fiddling with vertical position is skipped when there is a nonzero lateral displacement?
9cc5a12
to
713b25f
Compare
yes, it is: if the lateral displacement finds a spot, then it is known valid. I guess we could push the player towards the ground, but that wouldn't be needed on slopes. So only large steps could benefit from this and it wouldn't be worth it. |
3d663ae
to
713b25f
Compare

🎉