.
This commit is contained in:
parent
9e9ec23d08
commit
f9e4398583
|
@ -76,7 +76,7 @@ $message=json_decode(file_get_contents('php://input'), TRUE);
|
||||||
|
|
||||||
switch($message['action']){
|
switch($message['action']){
|
||||||
case "init":
|
case "init":
|
||||||
//file_put_contents(__DIR__."/log.txt",print_r($_POST,true));
|
|
||||||
$wantedVars=array(
|
$wantedVars=array(
|
||||||
'opponent' => false,
|
'opponent' => false,
|
||||||
'width' => true,
|
'width' => true,
|
||||||
|
@ -213,7 +213,7 @@ switch($message['action']){
|
||||||
case "play-turn":
|
case "play-turn":
|
||||||
//for debog arena
|
//for debog arena
|
||||||
|
|
||||||
echo rand(0,$_POST['width'] -1).",".rand(0,$_POST['height'] -1);
|
echo rand(0,$message['width'] -1).",".rand(0,$message['height'] -1);
|
||||||
|
|
||||||
|
|
||||||
die;
|
die;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user