Networking CE BUG

Here are a few lines of code from my project, note the 'warning':

Code: Select all

   Ang3 pryC;
   pryC.x = CLAMP(look.tAng.x, (0 - pActVars->pitchLimit), pActVars->pitchLimit);
   pryC.z = CLAMP(look.tAng.z, (0 - pActVars->yawLimit), pActVars->yawLimit);

   /* WARNING!!!!!   The above pryC auto-initializes pryC.y to 0 on the client, and something like - or + 504 on the server!!!
      CryLog("CLIENT pryC %f", pryC.y);
      CryLog("SERVER pryC %f", pryC.y);

Lost about 5-7 hours on this since I thought I was either passing pitch/yaw wrong, skewing somewhere else, etc.
Ended up just randomly cry-logging related variables server vs client-side until I got to this.

If this is an issue on my part, please advise. I think this can be easily replicated.

Who is online

Users browsing this forum: No registered users and 1 guest