View Single Post
Re: gpGlobals->v_right is NaN sometimes with Linux
Old
  (#9)
markus_heiden
Moderator / E[POD]bot developer
 
markus_heiden's Avatar
 
Status: Offline
Posts: 66
Join Date: Oct 2005
Location: Hamburg / Germany
Default Re: gpGlobals->v_right is NaN sometimes with Linux - 18-09-2006

I fixed it now. But it had nothing to do with UTIL_MakeVectors(). I simply didn't know that v_forward etc. are the return values from UTIL_MakeVectors(). Nevertheless I fixed several errors in the math code of epodbot and ensured that only wrapped angles are passed to UTIL_MakeVectors(). So the code should be much more stable now at all.

The problem was that the index into the array with the skill dependant aim constants exceeded the array size. With gcc there were some nans values after the array, with msvc there were valid floats. So it seemed that this was a linux problem, but it wasn't.
  
Reply With Quote