Преглед изворни кода

Fixed default Timer smoothing to comply with its description (#938)

Sébastien Bénard пре 4 година
родитељ
комит
ac13f1f08e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      hxd/Timer.hx

+ 1 - 1
hxd/Timer.hx

@@ -25,7 +25,7 @@ class Timer {
 		the results for tmod/dt/fps over frames using the formula   dt = lerp(dt, elapsedTime, smoothFactor)
 		Default : 0 on HashLink, 0.95 on other platforms
 	**/
-	public static var smoothFactor = 0.95;
+	public static var smoothFactor = #if hl 0. #else 0.95 #end;
 
 	/**
 		The last timestamp in which update() function was called.