Skip to content

Commit 7d61267

Browse files
committed
Bug fix: this.time needs the Date.now() value, not the function!
1 parent 9760468 commit 7d61267

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/time/Time.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Phaser.Time.prototype = {
276276
update: function (time) {
277277

278278
// this.time always holds Date.now, this.now may hold the RAF high resolution time value if RAF is available (otherwise it also holds Date.now)
279-
this.time = Date.now;
279+
this.time = Date.now();
280280

281281
// 'now' is currently still holding the time of the last call, move it into prevTime
282282
this.prevTime = this.now;

0 commit comments

Comments
 (0)