pull/96/head
Gnieark 8 years ago
parent 5173d10fe4
commit ce15816c86

@ -1 +1 @@
1825 1836

@ -125,11 +125,11 @@ function play(gameId,xd_check){
//find the bot name //find the bot name
for (var j = 0; j < botsAvailable.length; j ++){ for (var j = 0; j < botsAvailable.length; j ++){
if(botsAvailable[j]['id'] == reponse['lap']['loosers'][i]['order']){ if(botsAvailable[j]['id'] == reponse['lap']['loosers'][i]['id']){
var botName = botsAvailable[j]['name']; var botName = botsAvailable[j]['name'];
} }
} }
addLog("Bot " + reponse['lap']['loosers'][i]['order'] + "id " + reponse['lap']['loosers'][i]['id'] + " Name: " + botName + " a perdu."); addLog("Bot " + reponse['lap']['loosers'][i]['order'] + " Name: " + botName + " loosed");
} }
drawMap(reponse['lap']['last_points']); drawMap(reponse['lap']['last_points']);
if(reponse['continue'] == '1'){ if(reponse['continue'] == '1'){
@ -139,7 +139,8 @@ function play(gameId,xd_check){
//} ,500); //} ,500);
}else{ }else{
alert ('game ended'); addLog("Game ended");
document.getElementById('fightButton').disabled=false;
} }
}else{ }else{

Loading…
Cancel
Save