okay,
It's also NOT been syntax checked, as we can tell from previous lines:
if Unit
(0).Movement.MapX
< Mx~%%
or
If the syntax checker had done its thing, these lines would be capitalized, which makes it seem to me as if there's a syntax error, or some such, which should be noticeable in your program before it gets to this point.
That is because this section of code was added after I turned this sub into an include file, that IF-THEN section was typed in my Hex editor. Once I get a SUB or FUNCTION working I pull it from the main code and turn it into an include, freeing up the IDE space. from time to time I change something in the main code that requires some changes to the included subs and for that I use the Hex editor. this time the issue was caused by that editor. but that is why the If then section wasn't syntax checked while the rest is.
Felli, I am including the code necessary to make the error show up, I started this project with Build 20171116/82 and will probably finish it with that version, then the move to a more recent release for the next project. though I am pretty sure this happened on an even earlier version too but cant remember just when it happened last time.(I'll test it with the current DB just to be thorough but I doubt this issue has been addressed as I doubt it comes up that often. will add response once done.)
I also included a snap shot of what my editor shows me when I copied the original posted code and pasted it back into my editor, and thats why this is so hard for me to catch right off cause it shows everything spaced just how I wanted it and I never use the tab key.
Hey if you want to check out some of the test animation change 'DrawSpriteerror.bi' to 'DrawSprite.bi' and watch the peasant follow his path around the trees! its still pretty rough but the pathfinding and animation are working together!