2 to 12 bots available

This commit is contained in:
Gnieark 2016-06-30 13:54:34 +02:00
parent a69508287c
commit 710ac6e57b

View File

@ -85,5 +85,5 @@ function tron(xd_check){
request.onreadystatechange = function(){applyInitMessage(request)}; request.onreadystatechange = function(){applyInitMessage(request)};
request.open("POST", '/tron', true); request.open("POST", '/tron', true);
request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
request.send('act=initGame&xd_check=' + xd_check + '&bots=' + JSON.parse(botsList) + '&fullLogs=' + document.getElementById("fullLogs").checked); request.send('act=initGame&xd_check=' + xd_check + '&bots=' + JSON.stringify(botsList) + '&fullLogs=' + document.getElementById("fullLogs").checked);
} }