fixed timer listening
This commit is contained in:
		| @@ -44,7 +44,11 @@ class TimerListening { | |||||||
| 	 * Increase last Trigger Time | 	 * Increase last Trigger Time | ||||||
| 	 */ | 	 */ | ||||||
| 	public function tick() { | 	public function tick() { | ||||||
| 		$this->lastTrigger += $this->deltaTime; | 		if ($this->lastTrigger === null) { | ||||||
|  | 			$this->lastTrigger = microtime(true); | ||||||
|  | 		} else { | ||||||
|  | 			$this->lastTrigger += $this->deltaTime; | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	/** | 	/** | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user