Skip to content

Commit 8234d6a

Browse files
committed
Fixed Nan TimeStep errors.
1 parent fe0b6ea commit 8234d6a

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

v3/src/boot/TimeStep.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ var TimeStep = new Class({
6969
// The actual elapsed time in ms between one update and the next.
7070
// No smoothing, no capping, no averaging. So please be aware of this when using the contents of this property.
7171
this.rawDelta = 0;
72-
73-
for (var i = 0; i < this.deltaSmoothingMax; i++)
74-
{
75-
this.deltaHistory[i] = this._target;
76-
}
7772
},
7873

7974
// Called when the DOM window.onBlur event triggers
@@ -145,7 +140,10 @@ var TimeStep = new Class({
145140
this.started = true;
146141
this.running = true;
147142

148-
this.deltaHistory = [];
143+
for (var i = 0; i < this.deltaSmoothingMax; i++)
144+
{
145+
this.deltaHistory[i] = this._target;
146+
}
149147

150148
this.resetDelta();
151149

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: '25109a70-75f2-11e7-834a-a16fc1dcb07f'
2+
build: 'fe206a90-7609-11e7-b1ce-db003560483b'
33
};
44
module.exports = CHECKSUM;

0 commit comments

Comments
 (0)