fix
This commit is contained in:
parent
815f99c0cc
commit
5093978301
|
@ -282,7 +282,7 @@ switch ($_POST['act']){
|
|||
$result="hit and sunk";
|
||||
//remove the ship
|
||||
unset($_SESSION['ships'][$opponent][$shipIndex]);
|
||||
var_dump($_SESSION['ships'][$opponent]);
|
||||
//var_dump($_SESSION['ships'][$opponent]);
|
||||
//win the game?
|
||||
if(count($_SESSION['ships'][$opponent]) == 0){
|
||||
$result="hit sunk and win";
|
||||
|
|
Loading…
Reference in New Issue
Block a user