Jelajahi Sumber

sentinel should tick a soon as we kick the main loop

ncannasse 7 tahun lalu
induk
melakukan
9f201f4104
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  1. 1 0
      hxd/System.hl.hx

+ 1 - 0
hxd/System.hl.hx

@@ -301,6 +301,7 @@ class System {
 		#if !usesys
 		#if !usesys
 		hl.Api.setErrorHandler(function(e) reportError(e)); // initialization error
 		hl.Api.setErrorHandler(function(e) reportError(e)); // initialization error
 		sentinel = new hl.UI.Sentinel(30, function() throw "Program timeout (infinite loop?)");
 		sentinel = new hl.UI.Sentinel(30, function() throw "Program timeout (infinite loop?)");
+		haxe.MainLoop.add(timeoutTick);
 		#end
 		#end
 	}
 	}