Merge pull request #30 from foin137/bug_26_remove-player

[#26] Fix bug when removing players
This commit is contained in:
foin137
2021-01-29 20:08:30 +01:00
committed by GitHub

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)