nginx acp stuff

This commit is contained in:
ntr
2019-08-14 17:40:01 +10:00
parent 6fe9b52d00
commit 8684f32db2
11 changed files with 139 additions and 67 deletions
+3 -1
View File
@@ -396,9 +396,11 @@ impl Instance {
// if you don't win, you lose
// ties can happen if both players forfeit
// in this case we just finish the game and
// dock them 10k mmr
let winner_id = match game.winner() {
Some(w) => w.id,
None => Uuid::nil(),
None => return Ok(self.finish()),
};
for player in game.players.iter() {