Remove game-specific data functionality.

This commit is contained in:
Patrick Fairbank
2019-07-27 12:09:35 -07:00
parent cb05727231
commit 48055dc5ca
9 changed files with 12 additions and 61 deletions

View File

@@ -209,8 +209,7 @@ func (web *Web) matchPlayWebsocketHandler(w http.ResponseWriter, r *http.Request
web.arena.AllianceStations[station].Bypass = !web.arena.AllianceStations[station].Bypass
case "startMatch":
args := struct {
MuteMatchSounds bool
GameSpecificData string
MuteMatchSounds bool
}{}
err = mapstructure.Decode(data, &args)
if err != nil {
@@ -218,7 +217,6 @@ func (web *Web) matchPlayWebsocketHandler(w http.ResponseWriter, r *http.Request
continue
}
web.arena.MuteMatchSounds = args.MuteMatchSounds
web.arena.CurrentMatch.GameSpecificData = args.GameSpecificData
err = web.arena.StartMatch()
if err != nil {
ws.WriteError(err.Error())