and everything was working fine. However I was thinking "hey that's probably way more than I actually need, let's try less."
I changed the line to
#define MAX_WALKPATH 60
but this caused my characters to be able to move no further than 2 tiles!!! Could this perhaps be a bug? I don't think I have ever changed any of the pathfinding functions. btw my official walkpath is off. (walkpath in client.conf was set to 99 and 60 both, that made no difference.)
I'm not that experienced with the C language but maybe the fact 60 is small enough to be signed short but 128 isn't could be what makes this difference? Automatic type conversions and whatnot causing it?
Question
Seravy
So far I had
#define MAX_WALKPATH 128
and everything was working fine. However I was thinking "hey that's probably way more than I actually need, let's try less."
I changed the line to
#define MAX_WALKPATH 60
but this caused my characters to be able to move no further than 2 tiles!!! Could this perhaps be a bug? I don't think I have ever changed any of the pathfinding functions. btw my official walkpath is off. (walkpath in client.conf was set to 99 and 60 both, that made no difference.)
I'm not that experienced with the C language but maybe the fact 60 is small enough to be signed short but 128 isn't could be what makes this difference? Automatic type conversions and whatnot causing it?
Edited by SeravyLink to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.