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,8 +44,12 @@ class TimerListening {
* Increase last Trigger Time
*/
public function tick() {
if ($this->lastTrigger === null) {
$this->lastTrigger = microtime(true);
} else {
$this->lastTrigger += $this->deltaTime;
}
}
/**
* Trigger the Listener's Method