[Plib-cvs] plib/src/util ul.h,1.69,1.70
Brought to you by:
sjbaker
From: John F. F. <fa...@us...> - 2005-07-14 17:08:42
|
Update of /cvsroot/plib/plib/src/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21184 Modified Files: ul.h Log Message: Fixing clock bug in which \"delta\" was given the wrong value in the first update call Index: ul.h =================================================================== RCS file: /cvsroot/plib/plib/src/util/ul.h,v retrieving revision 1.69 retrieving revision 1.70 diff -u -d -r1.69 -r1.70 --- ul.h 24 Jun 2004 16:30:55 -0000 1.69 +++ ul.h 14 Jul 2005 17:08:28 -0000 1.70 @@ -224,10 +224,10 @@ initPerformanceTimer () ; #endif start = getRawTime () ; - now = start ; + now = 0.0 ; max_delta = 0.2 ; delta = 1.0 / 30.0 ; /* Faked so stoopid programs won't div0 */ - last_time = now - delta ; + last_time = 0.0 ; } void setMaxDelta ( double maxDelta ) { max_delta = maxDelta ; } |