fixed timer listening

This commit is contained in:
Steffen Schröder 2014-05-09 16:54:00 +02:00
parent 2b3e9113b4
commit 8577aa5b3b

View File

@ -44,7 +44,11 @@ class TimerListening {
* Increase last Trigger Time
*/
public function tick() {
$this->lastTrigger += $this->deltaTime;
if ($this->lastTrigger === null) {
$this->lastTrigger = microtime(true);
} else {
$this->lastTrigger += $this->deltaTime;
}
}
/**