View Single Post
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 07-15-2014 , 21:40   Re: A* Pathfinding API
Reply With Quote #28

Quote:
Originally Posted by Black Rose View Post
I didn't even know that was required. I thought EngFunc_TraceLine created it's own handle.
It seems to be working fine without that. But if is required I will of course update the API and the example with that as soon as possible (worst case, this weekend).

Code:
    //With 1.71 you can pass an optional TraceLine ptr for trace natives     // it can be 0, for meaning "global tr handle" (for get/set_tr2), or
    // it can be any other TR handle (such as one from a TR hook)     EngFunc_TraceLine,&nb sp;               &nb sp;    // void )       &n bsp;    (const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);


When reading that I get the impression it is not required.
Yeah, you can do it freely, bad thing is that you're using free_tr2 with an empty variable, don't know if free_tr2 validates it before freeing something, but we're just coding the syntax.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline