Fix typo
parent
4fdee73a5b
commit
e1dc8603d1
|
@ -427,7 +427,7 @@ window.Kart = function(pos, angle, speed, kartN, charN, controller, scene) {
|
||||||
var current = checkpoints[k.checkPointNumber];
|
var current = checkpoints[k.checkPointNumber];
|
||||||
var respawn;
|
var respawn;
|
||||||
if (current == null)
|
if (current == null)
|
||||||
respawn = (Math.random() * respawns.length) | 0;
|
respawn = respawns[(Math.random() * respawns.length) | 0]; //todo: deterministic
|
||||||
else
|
else
|
||||||
respawn = respawns[current.respawn];
|
respawn = respawns[current.respawn];
|
||||||
k.physicalDir = (180-respawn.angle[1])*(Math.PI/180);
|
k.physicalDir = (180-respawn.angle[1])*(Math.PI/180);
|
||||||
|
|
Loading…
Reference in New Issue