This commit is contained in:
riperiperi authored and GitHub committed 2019-05-11 23:36:41 +01:00
1 parent 4fdee73a5b
commit e1dc8603d1
1 file changed
+1 -1
+1 -1
View File
@@ -427,7 +427,7 @@ window.Kart = function(pos, angle, speed, kartN, charN, controller, scene) {
var current = checkpoints[k.checkPointNumber];
var respawn;
if (current == null)
respawn = (Math.random() * respawns.length) | 0;
respawn = respawns[(Math.random() * respawns.length) | 0]; //todo: deterministic
else
respawn = respawns[current.respawn];
k.physicalDir = (180-respawn.angle[1])*(Math.PI/180);