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