From 935c2ab4e63e60bd176f06235f685f3df71fddeb Mon Sep 17 00:00:00 2001 From: Rafael Barreto Date: Sun, 11 Jul 2010 02:45:44 +0000 Subject: [PATCH] forget this: vel needs a value here git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5338 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clients2c.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/src/clients2c.cpp b/source/src/clients2c.cpp index c7c9f721..e86a8246 100644 --- a/source/src/clients2c.cpp +++ b/source/src/clients2c.cpp @@ -157,9 +157,9 @@ void parsepositions(ucharbuf &p) pitch = (float)getint(p); g = getuint(p); if ((g>>3) & 1) roll = (float)(getint(p)*20.0f/125.0f); - if (g & 1) vel.x = getint(p)/DVELF; - if ((g>>1) & 1) vel.y = getint(p)/DVELF; - if ((g>>2) & 1) vel.z = getint(p)/DVELF; + if (g & 1) vel.x = getint(p)/DVELF; else vel.x = 0; + if ((g>>1) & 1) vel.y = getint(p)/DVELF; else vel.x = 0; + if ((g>>2) & 1) vel.z = getint(p)/DVELF; else vel.x = 0; scoping = ( (g>>4) & 1 ? true : false ); f = getuint(p); }