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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user