mirror of
https://github.com/foin137/werwolfonline.eu.git
synced 2025-12-13 03:41:25 +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)
|
function aus_spiel_entfernen($spielerID, $mysqli)
|
||||||
{
|
{
|
||||||
$spielID = $_COOKIE['SpielID'];
|
$spielID = (int)$_COOKIE['SpielID'];
|
||||||
$spielerID = (int)$spielerID;
|
$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)
|
function alleReloadAusser($spielerID,$mysqli)
|
||||||
|
|||||||
Reference in New Issue
Block a user