forked from SteamWar/SteamWar
Fixes and De-Spagetti Code
This commit is contained in:
@@ -175,10 +175,7 @@ object TNTLeagueGame {
|
||||
blueTeam.invites.remove(player)
|
||||
redTeam.invites.remove(player)
|
||||
getTeam(player)?.apply {
|
||||
members.remove(player)
|
||||
if (leader == player && members.isNotEmpty() && state == GameState.RUNNING) {
|
||||
win(this.opposite, WinReason.LEAVE)
|
||||
}
|
||||
remove(player)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user