added an if. defaults on anyway.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@264 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-09-30 22:41:42 +00:00
parent 19e99274fd
commit 9cf99374db

View file

@ -696,7 +696,8 @@ unsigned long __stdcall IN_SerialMSIntelliRun(void *param)
mouse->delta[0] += (signed char)(((code[0] & 0x03) << 6) | (code[1]/* & 0x3F*/));
mouse->delta[1] += (signed char)(((code[0] & 0x0C) << 4) | (code[2]/* & 0x3F*/));
mouse->wheeldelta += (signed char)((code[3] & 0x0f)<<4)/16;
if (m_forcewheel.value)
mouse->wheeldelta += (signed char)((code[3] & 0x0f)<<4)/16;
total=0;
}