This commit is contained in:
gnieark 2016-05-14 23:01:51 +02:00
parent b370cf2f91
commit 30d41fa5fa

View File

@ -64,9 +64,9 @@ function connectFour(bot1,bot2,xd_check, newGame){
xhr.open("POST", '/connectFour', true); xhr.open("POST", '/connectFour', true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
if(newGame){ if(newGame){
var act=newFight; var act='newFight';
}else{ }else{
var act=fight; var act='fight';
} }
xhr.send('act=' + act + '&bot1=' + bot1 + '&bot2=' + bot2 + '&xd_check=' + xd_check); xhr.send('act=' + act + '&bot1=' + bot1 + '&bot2=' + bot2 + '&xd_check=' + xd_check);
} }