gh-pages
riperiperi 2019-05-11 23:36:41 +01:00 committed by GitHub
parent 4fdee73a5b
commit e1dc8603d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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);