This commit is contained in:
Gnieark 2016-06-19 21:32:50 +02:00
parent 97add3146f
commit 4947b14256

View File

@ -199,7 +199,7 @@ switch($message['action']){
case 'left':
$shipsCoords[]=$x.",".$y."-".($x - $shipWidth + 1).",".$y;
$map= place_ship_on_map($x,$y,$x - $shipWidth + 1 ,$y,$map);
break;$message['board']
break;
case 'right':
$shipsCoords[]=$x.",".$y."-".($x + $shipWidth - 1 ).",".$y;
$map= place_ship_on_map($x,$y,$x + $shipWidth -1 ,$y,$map);