.
This commit is contained in:
parent
97add3146f
commit
4947b14256
|
@ -199,7 +199,7 @@ switch($message['action']){
|
||||||
case 'left':
|
case 'left':
|
||||||
$shipsCoords[]=$x.",".$y."-".($x - $shipWidth + 1).",".$y;
|
$shipsCoords[]=$x.",".$y."-".($x - $shipWidth + 1).",".$y;
|
||||||
$map= place_ship_on_map($x,$y,$x - $shipWidth + 1 ,$y,$map);
|
$map= place_ship_on_map($x,$y,$x - $shipWidth + 1 ,$y,$map);
|
||||||
break;$message['board']
|
break;
|
||||||
case 'right':
|
case 'right':
|
||||||
$shipsCoords[]=$x.",".$y."-".($x + $shipWidth - 1 ).",".$y;
|
$shipsCoords[]=$x.",".$y."-".($x + $shipWidth - 1 ).",".$y;
|
||||||
$map= place_ship_on_map($x,$y,$x + $shipWidth -1 ,$y,$map);
|
$map= place_ship_on_map($x,$y,$x + $shipWidth -1 ,$y,$map);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user