compatibility purposes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5461 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-07-27 01:26:49 +00:00
parent 97cfafe794
commit 0cfc4b08e1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ inline float fCos(float x) { x *= 0.636619772f; FCOS; }
inline float fSin(float x) { x *= 0.636619772f; x -= 1.0f; FCOS; }
#undef FCOS
inline float ufS2C(float x) { x *= x; return x > 1.0f ? 0.0f : ufSqrt(1.0f - x); }
inline float ufS2C(float x) { x *= x; return x < 1.0f ? ufSqrt(1.0f - x) : 0.0f; }
struct vec
{
+2 -2
View File
@@ -2957,8 +2957,8 @@ void process(ENetPacket *packet, int sender, int chan)
int usefactor = q.getbits(2) + 7;
int xt = q.getbits(usefactor + 4);
int yt = q.getbits(usefactor + 4);
cl->y = q.getbits(9);
cl->p = q.getbits(8);
cl->y = (q.getbits(9)*360)/512;
cl->p = ((q.getbits(8)-128)*90)/127;
if(!q.getbits(1)) q.getbits(6);
if(!q.getbits(1)) q.getbits(4 + 4 + 4);
cl->f = q.getbits(8);