From: Thomas T. <to...@us...> - 2003-10-29 01:54:18
|
Update of /cvsroot/planeshift/planeshift/src/client/paws In directory sc8-pr-cvs1:/tmp/cvs-serv29414 Modified Files: pawswidget.h Log Message: Changed two float calculations to use temporary floating value. Index: pawswidget.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/paws/pawswidget.h,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** pawswidget.h 21 Oct 2003 22:45:17 -0000 1.39 --- pawswidget.h 29 Oct 2003 01:51:40 -0000 1.40 *************** *** 319,323 **** float value = (float)myValue; ! float ret = ( myValue * desktop ) / 800.0f + 0.5; return ( (int)ret ); } --- 319,323 ---- float value = (float)myValue; ! float ret = ( value * desktop ) / 800.0f + 0.5; return ( (int)ret ); } *************** *** 328,332 **** float value = (float)myValue; ! float ret = ( myValue * desktop ) / 600.0f + 0.5; return ( (int)ret ); } --- 328,332 ---- float value = (float)myValue; ! float ret = ( value * desktop ) / 600.0f + 0.5; return ( (int)ret ); } |