[#26] Fix bug when removing players

Makes sure that the game can continue when waiting for and removing a player
This commit is contained in:
foin137
2021-01-29 20:07:41 +01:00
parent e180050c95
commit fcda5cb46c

View File

@@ -3937,9 +3937,14 @@ function diesesSpielLoeschenButton()
}
function aus_spiel_entfernen($spielerID, $mysqli)
{
$spielID = $_COOKIE['SpielID'];
$spielID = (int)$_COOKIE['SpielID'];
$spielerID = (int)$spielerID;
$mysqli->Query("UPDATE $spielID"."_spieler SET lebt = 0 WHERE id = $spielerID");
$mysqli->Query("UPDATE $spielID"."_spieler SET lebt = 0 WHERE id = $spielerID");
//Überprüfe, ob sonst schon alle bereit sind
if ($g = gameAssoc($mysqli))
{
phaseBeendenWennAlleBereit($g['spielphase'],$mysqli);
}
}
function alleReloadAusser($spielerID,$mysqli)