Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func WaitForMatchReady(
gamePacket = packet
}
case <-timer1.C:
conn.SendPacket(nil);
conn.SendPacket(nil)
return fmt.Errorf("Timed out waiting for match start after %s", matchStartDur)
}
}
Expand All @@ -224,7 +224,7 @@ func WaitForMatchReady(
// Ignore other packet types in this phase
}
case <-timer2.C:
conn.SendPacket(nil);
conn.SendPacket(nil)
return fmt.Errorf(
"Timed out waiting for match ready after %s",
matchReadyDur,
Expand Down Expand Up @@ -378,8 +378,8 @@ func (a *App) PickRLBotToml() (string, error) {
}

filename := filepath.Base(path)
if filename == "bot.toml" || filename == "script.toml" ||
strings.HasSuffix(filename, ".bot.toml") ||
if filename == "bot.toml" || filename == "script.toml" ||
strings.HasSuffix(filename, ".bot.toml") ||
strings.HasSuffix(filename, ".script.toml") {
return path, nil
}
Expand Down
4 changes: 2 additions & 2 deletions players.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (info PsyonixBotInfo) ToPlayerConfig(team uint32) *flat.PlayerConfiguration
Team: team,
RootDir: "",
RunCommand: "",
Loadout: &flat.PlayerLoadoutT{},
Loadout: nil,
SpawnId: 0,
Hivemind: false,
}
Expand All @@ -83,7 +83,7 @@ func (info HumanInfo) ToPlayerConfig(team uint32) *flat.PlayerConfigurationT {
Team: team,
RootDir: "",
RunCommand: "",
Loadout: &flat.PlayerLoadoutT{},
Loadout: nil,
SpawnId: 0,
Hivemind: false,
}
Expand Down