ncannasse 7 năm trước cách đây
mục cha
commit
ec9fd0779a
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      hxd/Timer.hx

+ 2 - 2
hxd/Timer.hx

@@ -72,11 +72,11 @@ class Timer {
 	}
 
 	inline static function get_tmod() {
-		return dt / wantedFPS;
+		return dt * wantedFPS;
 	}
 
 	inline static function set_tmod(v:Float) {
-		dt = v * wantedFPS;
+		dt = v / wantedFPS;
 		return v;
 	}