Jump to content
  • 0

MAX_WALKPATH


Seravy

Question


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.02
  • Content Count:  176
  • Reputation:   60
  • Joined:  01/11/19
  • Last Seen:  

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 Seravy
Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...