Block autonomous commit pre-match unless it's a test match (fixes #28).

This commit is contained in:
Patrick Fairbank
2016-10-16 15:35:19 -07:00
parent 33844049ed
commit 093b7f64f0

View File

@@ -243,7 +243,9 @@ func ScoringDisplayWebsocketHandler(w http.ResponseWriter, r *http.Request) {
}
}
case "commit":
(*score).AutoCommitted = true
if mainArena.MatchState != PRE_MATCH || mainArena.currentMatch.Type == "test" {
(*score).AutoCommitted = true
}
case "uncommitAuto":
(*score).AutoCommitted = false
case "commitMatch":