mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 13:46:44 -04:00
Block autonomous commit pre-match unless it's a test match (fixes #28).
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user