This commit is contained in:
Gnieark 2015-12-19 12:54:55 +01:00
parent 815f99c0cc
commit 5093978301
1 changed files with 1 additions and 1 deletions

View File

@ -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";