mirror of
https://github.com/foin137/werwolfonline.eu.git
synced 2025-12-12 11:21:22 +00:00
[#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:
@@ -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");
|
||||
//Überprüfe, ob sonst schon alle bereit sind
|
||||
if ($g = gameAssoc($mysqli))
|
||||
{
|
||||
phaseBeendenWennAlleBereit($g['spielphase'],$mysqli);
|
||||
}
|
||||
}
|
||||
|
||||
function alleReloadAusser($spielerID,$mysqli)
|
||||
|
||||
Reference in New Issue
Block a user