fix shot.to.z valid values

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5548 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Rafael Barreto
2010-08-07 00:26:53 +00:00
parent 8637f6e4e9
commit 198acf9cde
+1 -1
View File
@@ -2768,7 +2768,7 @@ void process(ENetPacket *packet, int sender, int chan)
seteventmillis(shot.shot);
shot.shot.gun = getint(p);
loopk(3) { shot.shot.from[k] = cl->state.o.v[k] + ( k == 2 ? (((cl->f>>7)&1)?2.2f:4.2f) : 0); }
loopk(3) { float v = getint(p)/DMF; shot.shot.to[k] = v < 0.0f ? 0.0f : v; }
loopk(3) { float v = getint(p)/DMF; shot.shot.to[k] = ((k<2 && v<0.0f)?0.0f:v); }
int hits = getint(p);
int tcn = -1;
loopk(hits)